[tex-k] Fw: Aw: Re: Re: margin

Paul A. VOJTA vojta at berkeley.edu
Sun Sep 4 05:50:00 CEST 2022


I used \showlists (after the implicit \par).

On Sat, Sep 3, 2022 at 8:40 PM <Laurence.Finston at gmx.net> wrote:

>
>
>
> *Gesendet:* Sonntag, 04. September 2022 um 05:39 Uhr
> *Von:* Laurence.Finston at gmx.net
> *An:* "Paul A. VOJTA" <vojta at berkeley.edu>
> *Betreff:* Aw: Re: [tex-k] Fw: Re: margin
> Thanks.  Didn't think of that skip.  In fact, I've never set it to 0pt and
> had even forgotten its existence although I use this technique all the
> time.  It's never come up before, because I've never tried to put something
> exactly at the top margin.
>
> *Gesendet:* Sonntag, 04. September 2022 um 05:34 Uhr
> *Von:* "Paul A. VOJTA" <vojta at berkeley.edu>
> *An:* Laurence.Finston at gmx.net
> *Cc:* "tex-ktug.org" <tex-k at tug.org>
> *Betreff:* Re: [tex-k] Fw: Aw: Re: margin
> \hoffset-1in
> \voffset-1in
> \parindent0pt
> \topskip 0pt
>
> a
>
> \bye
>
> On Sat, Sep 3, 2022 at 8:25 PM <Laurence.Finston at gmx.net> wrote:
>
>>
>>
>>
>> *Gesendet:* Sonntag, 04. September 2022 um 05:24 Uhr
>> *Von:* Laurence.Finston at gmx.net
>> *An:* minoo_erhoo at protonmail.com
>> *Betreff:* Aw: Re: [tex-k] margin
>> That's on the first page.  I believe that that is the space from the top
>> of the letter to the top of the box containing the letter.  The same
>> applies to the space between the left edge of the paper and the left edge
>> of the serif at the bottom left of the letter.
>>
>> You can see the box in Computers and Typesetting, Vol. E, Computer Modern
>> Typefaces, by Knuth.  You can also see it if you run METAFONT on the
>> sources in proof mode.  I'll make an example when I get a chance.   You can
>> also use rules to show the boxes in TeX, but it's slightly inconvenient.
>>
>> *Gesendet:* Sonntag, 04. September 2022 um 04:38 Uhr
>> *Von:* "Minoo Erhoo" <minoo_erhoo at protonmail.com>
>> *An:* Laurence.Finston at gmx.net
>> *Betreff:* Re: Aw: [tex-k] margin
>> *Hi Laurence,*
>>
>> *i saw your final output file.*
>> *but as you see, there is some space.*
>>
>>
>> [image: image.png]
>> ------- Original Message -------
>> On Sunday, September 4th, 2022 at 12:37 AM, <Laurence.Finston at gmx.net>
>> wrote:
>>
>>
>> I've attached the PDF for anyone who doesn't want to run the example.
>>
>> *Gesendet:* Samstag, 03. September 2022 um 22:05 Uhr
>> *Von:* Laurence.Finston at gmx.net
>> *An:* minoo_erhoo at protonmail.com
>> *Cc:* "tex-k at tug.org" <tex-k at tug.org>
>> *Betreff:* Aw: [tex-k] margin
>> > I can't say for sure what the problem is without looking at the log
>> file for your example
>>
>> I would have to use the appropriate form of tracing, of course.  I
>> actually don't think there would be any space at the beginning of the page,
>> but I would check to be sure.
>>
>> The following code works, but with MetaPost, you do get the whole box, so
>> it doesn't really help.  On the second page of the TeX file, I show how to
>> shift the letters using infinite glue.  With this technique, you can put
>> anything you want anywhere on the page.  Here, I use a \vbox of \vsize and
>> an \hbox of \hsize, but more often I use boxes of zero height or width,
>> respectively, i.e., \vbox to 0pt and \hbox to 0pt, respectively.  \vss and
>> \hss, respectively, must be used in these boxes, as in the example below.
>> You don't need an EPS file,
>> you can just put letters, words, paragraphs, math mode material, etc.,
>> into the box, e.g., \hbox to 0pt{\hskip-1cm A\hss}.
>>
>> %% ttemp.mp
>> prologues := 3;
>> outputtemplate := "%j%3c.eps";
>> beginfig(1);
>> label(btex A etex, origin);
>> endfig;
>>
>> beginfig(2);
>> label(btex a etex, origin);
>> endfig;
>> end;
>>
>>
>>
>> %% ttemp.tex
>> \special{papersize=297mm, 210mm} %% DIN A4
>> \hsize=297mm
>> \vsize=210mm
>> \advance\voffset by -1in
>> \advance\hoffset by -1in
>> \input epsf
>> \baselineskip=0pt
>> \parindent=0pt
>> \parskip=0pt
>> \def\epsfsize#1#2{#2}
>> \leftline{\epsffile{ttemp001.eps}\epsffile{ttemp002.eps}}
>> \vfil\eject
>> \vbox to \vsize{\vskip-.375pt
>> \hbox to
>> \hsize{\hskip-.5pt\epsffile{ttemp001.eps}\epsffile{ttemp002.eps}\hss}\vss}
>> \bye
>>
>> Run like this: mpost ttemp && tex ttemp && dvipdfmx ttemp.dvi
>> *Gesendet:* Samstag, 03. September 2022 um 21:47 Uhr
>> *Von:* Laurence.Finston at gmx.net
>> *An:* minoo_erhoo at protonmail.com
>> *Betreff:* Aw: [tex-k] margin
>> I can't say for sure what the problem is without looking at the log file
>> for your example, but this is an example that works (see below).
>> The 10 x 10pt rule shows that it works.  The boxes containing the `a' and
>> the `A' are taller than the letters themselves.  I'd have to check to be
>> sure
>> there's no other space in your example.
>>
>> If you want a letter to be right at the edge of the paper, you can use
>> MetaPost to achieve this effect.  If I have a moment, I can make an example.
>> At the exact edge wouldn't be useful for printing, but it would work in a
>> dvi, ps or pdf viewer.
>>
>> \special{papersize=210mm, 297mm} %% DIN A4 Portrait
>> \hsize=210mm
>> \vsize=297mm
>> \advance\voffset by -1in
>> \advance\hoffset by -1in
>> \baselineskip=0pt
>> \parindent=0pt
>> \parskip=0pt
>> \vrule height 10pt width 10pt A a
>> \bye
>>
>> Laurence
>>
>> *Gesendet:* Samstag, 03. September 2022 um 20:50 Uhr
>> *Von:* "Minoo Erhoo" <minoo_erhoo at protonmail.com>
>> *An:* "tex-k at tug.org" <tex-k at tug.org>
>> *Betreff:* [tex-k] margin
>> *Hi,*
>> *i wrote this code to get a page without margins.*
>>
>>
>> *\hoffset-1in*
>> *\voffset-1in*
>>
>> *\parindent0pt*
>>
>> *a*
>>
>> *\bye*
>>
>> *but the first line (a) has vertical space before itself. in TeXBook told
>> 1inch is the margin space.*
>>
>> *may a bug?*
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-k/attachments/20220903/7043c711/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noname
Type: image/png
Size: 9798 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex-k/attachments/20220903/7043c711/attachment-0001.png>


More information about the tex-k mailing list.