[texhax] [solved] \par\nobreak vs. \vskip...\nobreak
David Carlisle
d.p.carlisle at gmail.com
Tue Jul 10 20:22:00 CEST 2018
It is in any case better to have a \par or blank line before a \vskip
rather than rely on its implicit forcing to vertical mode, then you
can put a \nobreak before the skip
so:
Mi sono ribellato, ma invano. Non posso, è vero, far sette scalini di
fila, che l’ansito non mi sopravvenga insopportabile; ma ecco: vorrei
che l’amico non si pigliasse tanto fastidio; che il portinajo si
facesse almeno ajutare da qualcun altro... Che! Florestano, se gli
fosse possibile, vorrebbe portarmi su lui solo, senza
ajuto.\par\nobreak\smallskip V!a, in fin de’ conti, non peso molto (sì
e no, quarantacinque chilogrammi, con tutti gli edemi); e poi penso:
servendo me, vuol guadagnarsi la felicità futura. Lasciamolo fare!
On 10 July 2018 at 19:20, David Carlisle <d.p.carlisle at gmail.com> wrote:
> It is any case better to have a `\par`
>
> On 10 July 2018 at 19:05, Rodolfo Medina <rodolfo.medina at gmail.com> wrote:
>> Ulrike Fischer <news3 at nililand.de> writes:
>>
>>> Am Tue, 10 Jul 2018 18:40:49 +0100 schrieb Philip Taylor:
>>>
>>>> Rodolfo Medina wrote:
>>>>> Hi all TeXperts.
>>>>>
>>>>> If, in a plain TeX document, I put `\par\nobreak', I'm quite sure that no
>>>>> page break will occur at that place. Instead, if I do
>>>>> i.e. `\smallskip\nobreak', TeX will break the page just there. As an
>>>>> example, I'm attaching a file to be processed with simply `tex file'... In
>>>>> it there's a `\smallskip\nobreak' that breaks the page. Replacing it with
>>>>> \par\nobreak prevents the break... How can I tell TeX to apply a certain
>>>>> \vskip - different from \parskip - without breaking the page there...?
>>>> No time to experiment, but I would try \nobreak \smallskip \nobreak ...
>>>
>>> \par\nobreak\smallskip or \vadjust{\nobreak}\smallskip
>>
>>
>> Seems to work... Fantastic... Thanks.
>>
>> Cheers,
>>
>> Rodolfo
>>
>> _______________________________________________
>> TeX FAQ: http://www.tex.ac.uk/faq
>> Mailing list archives: http://tug.org/pipermail/texhax/
>> More links: http://tug.org/begin.html
>>
>> Automated subscription management: http://tug.org/mailman/listinfo/texhax
>> Human mailing list managers: postmaster at tug.org
More information about the texhax
mailing list