Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Yo baby yo baby yo." -- Eddie Murphy


computers / comp.text.tex / Re: Simple question I think

SubjectAuthor
* Simple question I thinkJeff Barnett
`* Re: Simple question I thinkPhillip Helbig (undress to reply
 +* Re: Simple question I thinkJeff Barnett
 |`- Re: Simple question I thinkvincent.belaiche
 `* Re: Simple question I thinkPeter Flynn
  `- Re: Simple question I thinkJeff Barnett

1
Simple question I think

<sejn78$u6f$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3968&group=comp.text.tex#3968

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jbb@notatt.com (Jeff Barnett)
Newsgroups: comp.text.tex
Subject: Simple question I think
Date: Fri, 6 Aug 2021 10:15:33 -0600
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <sejn78$u6f$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 6 Aug 2021 16:15:36 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="336e9544b2b57b6628216251a3d048c6";
logging-data="30927"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+gU435hjLeb2lowR4St+3RR6RAlM/bRrE="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
Cancel-Lock: sha1:R+iHqHrAVocdy67eeu3Dtrd8vac=
Content-Language: en-US
X-Mozilla-News-Host: news://news.eternal-september.org:119
 by: Jeff Barnett - Fri, 6 Aug 2021 16:15 UTC

What I want to do is create a horizontal structure that resembles

1x obj 2x obj 2x obj 2x obj 1x

where I want it to take up the entire page width. The obj are objects
(boxes made with the picture environment) and the x are white space. A
number in front of an x defines its relative size; so in this example,
there will be twice as much white space between two obj then there is
next to the left and right margins. The point is that as I'm developing
the obj, the layout while be allocated by TeX and I wont have to mess
around calculating lengths and counting pixels with each edit.

Memory says this is really trivial but memory doesn't tell me what to
look up for the details. Either LaTeX or simple TeX mechanisms are what
I seek. I'm using the standard article class augmented by the amsmath
package. Thanks in advance for any pointers.
--
Jeff Barnett

Re: Simple question I think

<sejoc2$19ig$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3969&group=comp.text.tex#3969

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!aioe.org!GKvGL0jqJV3JMo0KcjSsiA.user.46.165.242.75.POSTED!not-for-mail
From: helbig@asclothestro.multivax.de (Phillip Helbig (undress to reply)
Newsgroups: comp.text.tex
Subject: Re: Simple question I think
Date: Fri, 6 Aug 2021 16:35:14 -0000 (UTC)
Organization: Multivax C&R
Message-ID: <sejoc2$19ig$1@gioia.aioe.org>
References: <sejn78$u6f$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="42576"; posting-host="GKvGL0jqJV3JMo0KcjSsiA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Phillip Helbig (undr - Fri, 6 Aug 2021 16:35 UTC

In article <sejn78$u6f$1@dont-email.me>, Jeff Barnett <jbb@notatt.com>
writes:

> What I want to do is create a horizontal structure that resembles
>
> 1x obj 2x obj 2x obj 2x obj 1x
>
> where I want it to take up the entire page width. The obj are objects
> (boxes made with the picture environment) and the x are white space. A
> number in front of an x defines its relative size; so in this example,
> there will be twice as much white space between two obj then there is
> next to the left and right margins. The point is that as I'm developing
> the obj, the layout while be allocated by TeX and I wont have to mess
> around calculating lengths and counting pixels with each edit.
>
> Memory says this is really trivial but memory doesn't tell me what to
> look up for the details. Either LaTeX or simple TeX mechanisms are what
> I seek. I'm using the standard article class augmented by the amsmath
> package. Thanks in advance for any pointers.
> --
> Jeff Barnett

\documentclass{article}
\begin{document}
$\cdot$
\hfill A
\hfill \hfill B
\hfill \hfill C
\hfill \hfill D
\hfill
$\cdot$
\end{document}

Note: the $\cdot$ commands are there just to show where the margins are.

Re: Simple question I think

<sek6qc$3lf$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3970&group=comp.text.tex#3970

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jbb@notatt.com (Jeff Barnett)
Newsgroups: comp.text.tex
Subject: Re: Simple question I think
Date: Fri, 6 Aug 2021 14:41:44 -0600
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <sek6qc$3lf$1@dont-email.me>
References: <sejn78$u6f$1@dont-email.me> <sejoc2$19ig$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 6 Aug 2021 20:41:48 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="336e9544b2b57b6628216251a3d048c6";
logging-data="3759"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18IqszcUB46a0f5t01CTd48SAmHuM3phYU="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
Cancel-Lock: sha1:pR+rG0/YKKbb1P1JRDHB+6sobXw=
In-Reply-To: <sejoc2$19ig$1@gioia.aioe.org>
Content-Language: en-US
 by: Jeff Barnett - Fri, 6 Aug 2021 20:41 UTC

On 8/6/2021 10:35 AM, Phillip Helbig (undress to reply) wrote:
> In article <sejn78$u6f$1@dont-email.me>, Jeff Barnett <jbb@notatt.com>
> writes:
>
>> What I want to do is create a horizontal structure that resembles
>>
>> 1x obj 2x obj 2x obj 2x obj 1x
>>
>> where I want it to take up the entire page width. The obj are objects
>> (boxes made with the picture environment) and the x are white space. A
>> number in front of an x defines its relative size; so in this example,
>> there will be twice as much white space between two obj then there is
>> next to the left and right margins. The point is that as I'm developing
>> the obj, the layout while be allocated by TeX and I wont have to mess
>> around calculating lengths and counting pixels with each edit.
>>
>> Memory says this is really trivial but memory doesn't tell me what to
>> look up for the details. Either LaTeX or simple TeX mechanisms are what
>> I seek. I'm using the standard article class augmented by the amsmath
>> package. Thanks in advance for any pointers.
>> --
>> Jeff Barnett
>
> \documentclass{article}
> \begin{document}
> $\cdot$
> \hfill A
> \hfill \hfill B
> \hfill \hfill C
> \hfill \hfill D
> \hfill
> $\cdot$
> \end{document}
>
> Note: the $\cdot$ commands are there just to show where the margins are.

Thank you!.
--
Jeff Barnett

Re: Simple question I think

<in5ph2F5tajU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3971&group=comp.text.tex#3971

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: peter@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Re: Simple question I think
Date: Fri, 6 Aug 2021 22:56:48 +0100
Lines: 51
Message-ID: <in5ph2F5tajU1@mid.individual.net>
References: <sejn78$u6f$1@dont-email.me> <sejoc2$19ig$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net mY04m0RE8A3614Mx6b0NNgc7RYdgUPRl9Z6C6FdNvZi7Z3F//r
Cancel-Lock: sha1:uybe1sjYWqnYE11fqGAFqrg/3N8=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
In-Reply-To: <sejoc2$19ig$1@gioia.aioe.org>
Content-Language: en-US
 by: Peter Flynn - Fri, 6 Aug 2021 21:56 UTC

On 06/08/2021 17:35, Phillip Helbig (undress to reply) wrote:
> In article <sejn78$u6f$1@dont-email.me>, Jeff Barnett <jbb@notatt.com>
> writes:
>
>> What I want to do is create a horizontal structure that resembles
>>
>> 1x obj 2x obj 2x obj 2x obj 1x
>>
>> where I want it to take up the entire page width. The obj are objects
>> (boxes made with the picture environment) and the x are white space. A
>> number in front of an x defines its relative size; so in this example,
>> there will be twice as much white space between two obj then there is
>> next to the left and right margins. The point is that as I'm developing
>> the obj, the layout while be allocated by TeX and I wont have to mess
>> around calculating lengths and counting pixels with each edit.
>>
>> Memory says this is really trivial but memory doesn't tell me what to
>> look up for the details. Either LaTeX or simple TeX mechanisms are what
>> I seek. I'm using the standard article class augmented by the amsmath
>> package. Thanks in advance for any pointers.
>> --
>> Jeff Barnett
>
> \documentclass{article}
> \begin{document}
> $\cdot$
> \hfill A
> \hfill \hfill B
> \hfill \hfill C
> \hfill \hfill D
> \hfill
> $\cdot$
> \end{document}
>
> Note: the $\cdot$ commands are there just to show where the margins are.

Nice, elegant solution.

You may want to precede the line with \noindent, otherwise if you have
indentation turned on, you'll get indentation white-space at the start
of the line.

You don't mention if you are going to use this repeatedly. If the widths
of the obj boxes are very different, especially from line to line of
multiple occurrrences, then the layout will look uneven: despite the
space being calculated correctly, it's only on a per-line basis. If you
need multiple lines to align down the page, you'll need a solution based
on the tabular environment, alternatively some macros to calculate the
spacing.

Peter

Re: Simple question I think

<m2fsvm9qo0.fsf@biosency.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3972&group=comp.text.tex#3972

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!aioe.org!nntp.terraraq.uk!news.gegeweb.eu!gegeweb.org!.POSTED.127.78.9.109.rev.sfr.net!not-for-mail
From: vincent.belaiche@gmail.com
Newsgroups: comp.text.tex
Subject: Re: Simple question I think
Date: Sat, 07 Aug 2021 00:03:43 +0200
Organization: Gegeweb News Server
Message-ID: <m2fsvm9qo0.fsf@biosency.com>
References: <sejn78$u6f$1@dont-email.me> <sejoc2$19ig$1@gioia.aioe.org>
<sek6qc$3lf$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: news.gegeweb.eu; posting-account="vbelaiche@orange.local"; posting-host="127.78.9.109.rev.sfr.net:109.9.78.127";
logging-data="48562"; mail-complaints-to="abuse@gegeweb.eu"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin)
Cancel-Lock: sha1:rS72TjEOwFxC/9apfsAf6XvxbYE= sha256:kCo5PgmrcOigk56A/NupzHYi+hA9JBotLHAgkVyWY7U=
 by: vincent.belaiche@gmail.com - Fri, 6 Aug 2021 22:03 UTC

Jeff Barnett <jbb@notatt.com> writes:

> On 8/6/2021 10:35 AM, Phillip Helbig (undress to reply) wrote:
>> In article <sejn78$u6f$1@dont-email.me>, Jeff Barnett <jbb@notatt.com>
>> writes:
>>
>>> What I want to do is create a horizontal structure that resembles
>>>
>>> 1x obj 2x obj 2x obj 2x obj 1x
>>>

[...]

>>> -- Jeff Barnett
>> \documentclass{article}
>> \begin{document}
>> $\cdot$
>> \hfill A
>> \hfill \hfill B
>> \hfill \hfill C
>> \hfill \hfill D
>> \hfill
>> $\cdot$
>> \end{document}
>> Note: the $\cdot$ commands are there just to show where the margins
>> are.
>
> Thank you!.

An alternative solution is as follows:

\documentclass{article}
\usepackage{tabularx}
\begin{document}
\begin{tabularx}{1.0\linewidth}%
{@{}>{\hsize=0.166666666667\hsize\linewidth=\hsize}X@{}l%
@{}>{\hsize=0.333333333334\hsize\linewidth=\hsize}X@{}l%
@{}>{\hsize=0.333333333334\hsize\linewidth=\hsize}X@{}l%
@{}>{\hsize=0.166666666667\hsize\linewidth=\hsize}X@{}}%
&obj&&obj&&obj&\\
\end{tabularx}
\end{document}

Here I do

a0x obj a1x obj a2x obj … aNx

The number bn in \hsize=bn\hsize computes as follows

bn = N × an / (sum ai)

So in the example above I have taken

a0 = 1
a1 = 2
a2 = 2
a2 = 1

hence :

b0 = 0.166666666667
b1 = 0.333333333334
b2 = 0.333333333334
b2 = 0.166666666667

This solution looks more complex compared to the other one, but it has
several advantages:

1) you are not bound to ai being integer (well, indeed with the other
one too because you could have:

\begin{document}
a0\hfill obj
a1\hfill obj
a3\hfill obj
a4\hfill
\end{document}

2) you can also change the vertical alignment of obj by defining
alternative column types (see tabularx documentation) --- OK, not a
significant advantage either, because anyway it is so easy with the
picture environment to move the baseline.

3) you could easily replace the space by something else (eg dotlines) by
populating the X columns.

4) you could do some framing by having column rules in the tabularx
format and use \cline for horizontal rules (well, a simple \fbox around
the objs would also do).

In conclusion what solution to take is more a matter of taste.

Re: Simple question I think

<sekdri$o57$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3973&group=comp.text.tex#3973

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jbb@notatt.com (Jeff Barnett)
Newsgroups: comp.text.tex
Subject: Re: Simple question I think
Date: Fri, 6 Aug 2021 16:41:50 -0600
Organization: A noiseless patient Spider
Lines: 81
Message-ID: <sekdri$o57$1@dont-email.me>
References: <sejn78$u6f$1@dont-email.me> <sejoc2$19ig$1@gioia.aioe.org>
<in5ph2F5tajU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding: quoted-printable
Injection-Date: Fri, 6 Aug 2021 22:41:54 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b6a68cba0109da5493e4c28c789a8602";
logging-data="24743"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Ei80WI3XOOqXAFTjKcI+l6/jtvhwHd7I="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
Cancel-Lock: sha1:SwYPGz1pQJfuoc9mWuwu9cC3orc=
In-Reply-To: <in5ph2F5tajU1@mid.individual.net>
Content-Language: en-US
 by: Jeff Barnett - Fri, 6 Aug 2021 22:41 UTC

On 8/6/2021 3:56 PM, Peter Flynn wrote:
> On 06/08/2021 17:35, Phillip Helbig (undress to reply) wrote:
>> In article <sejn78$u6f$1@dont-email.me>, Jeff Barnett <jbb@notatt.com>
>> writes:
>>
>>> What I want to do is create a horizontal structure that resembles
>>>
>>>        1x obj 2x obj 2x obj 2x obj 1x
>>>
>>> where I want it to take up the entire page width. The obj are objects
>>> (boxes made with the picture environment) and the x are white space. A
>>> number in front of an x defines its relative size; so in this example,
>>> there will be twice as much white space between two obj then there is
>>> next to the left and right margins. The point is that as I'm developing
>>> the obj, the layout while be allocated by TeX and I wont have to mess
>>> around calculating lengths and counting pixels with each edit.
>>>
>>> Memory says this is really trivial but memory doesn't tell me what to
>>> look up for the details. Either LaTeX or simple TeX mechanisms are what
>>> I seek. I'm using the standard article class augmented by the amsmath
>>> package. Thanks in advance for any pointers.
>>> --
>>> Jeff Barnett
>>
>> \documentclass{article}
>> \begin{document}
>> $\cdot$
>> \hfill A
>> \hfill \hfill B
>> \hfill \hfill C
>> \hfill \hfill D
>> \hfill
>> $\cdot$
>> \end{document}
>>
>> Note: the $\cdot$ commands are there just to show where the margins are.
>
> Nice, elegant solution.
>
> You may want to precede the line with \noindent, otherwise if you have
> indentation turned on, you'll get indentation white-space at the start
> of the line.
>
> You don't mention if you are going to use this repeatedly. If the widths
> of the obj boxes are very different, especially from line to line of
> multiple occurrrences, then the layout will look uneven: despite the
> space being calculated correctly, it's only on a per-line basis. If you
> need multiple lines to align down the page, you'll need a solution based
> on the tabular environment, alternatively some macros to calculate the
> spacing.

No, I have eight identically sized and formatted boxes and I just want
to lay them out 4 in a line, probably in a figure. I printed out the
documentation for the subfig package - 60+ pages of it and my eyes
glazed over. So I was trying to remember a simpler approach. As you said
"Nice, elegant, solution". What I was trying to remember has started to
pop back: infinitely stretchable glue. I think that's what \hfill is
built from. When I asked the list for help, I couldn't remember that
buzz phrase and so didn't know what to search on. I think it's all good now.
--
Jeff Barnett

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor