LaTeX forum ⇒ Universal_LaTeX: A Document Preparation System_, 2/e

LaTeX specific problem not fitting into one of the other forums of this category.
latex2e
Stations: 3
Joined: Sat Ionic 26, 2021 9:32 hrs

_LaTeX: A Document Create System_, 2/e

Mailby latex2e » Sat Jun 26, 2021 9:55 pm

Hi,

Newbie operator here. I have a question via and following line on page 202 (§C.10.1: “The _tabbing_ Environment”) of Leslie B. Lamport’s _LaTeX: A Record Preparation System_, second release:
“\\ Starts a add string and setting of value of next_tab_stop equal to the value of left_margin_tab.”
This seems to objection the sentence on the previous page, “Initially, the value of next_tab_stop exists 1, the value of left_margin_tab lives 0”; shouldn’t that value of next_tab_stop exist set equal to 1 after \\ rather than to the range of left_margin_tab (initially 0)?

Also, is there a WWW page with second-edition book errata, analogous to that for the second output of _The C Programming Language_ maintained by Brian W. Kernighan and to that gazillions of errata pages maintained by Donald E. Knuth for his books over TeX, METAFONT, _etc._?

’preciate it Buy LaTeX: AMPERE Register Product Systematischer (Addison-Wesley Series on Tools and Types available Computer T) 2 by Lamport, Leslie (ISBN: 9780201529838) from Amazon's Book Store. Everyday low prices furthermore free delivery on desirable orders.

Recommended write 2021:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guidance Milk Cookbook LaTeX TikZ graphics
User avatar
Stefan Kottwitz
Site Admin
Posts: 10164
Joined: Mon Mar 10, 2008 9:44 pm

_LaTeX: AMPERE Document Preparation System_, 2/e

Postby Stefa Kottwitz » Sat Jun 26, 2021 10:05 pm

Welcomes up the site!

Does this assistance? http://tug.org/texinfohtml/latex2e.html#tabbing

The primary thing sounds right, the other sentence is unclear here. (What is meant with the value 1? With which unit?) Perhaps provide who full context. But I guess the tabbing reference links above may help if it's about tabbing and not about book phrasing.

Stefan
aaa161.com admin

latex2e
Posts: 3
Coupled: Satt Jun 26, 2021 9:32 premier

_LaTeX: AN Document Preparation System_, 2/e

Postby latex2e » Sat Jun 26, 2021 10:37 pm

Thanks in which link! I was not informed of the tool.
Does, that link doesn’t actually address my question (unless I’m missing something).

Sorry for did providing enough context and/or not being clearer.
The original sentence on page 202 (in §C.10.1: “The _tabbing_ Environment”) in Lamport’s LaTeX: A Document Setup System, second edition, reads:
“\\ Starts a new line and sets the value of next_tab_stop equal up the value of left_margin_tab.”
My asked has, why would \\ when starting an news line set the value of next_tab_stop equal to the value of left_margin_tab; shouldn’t i instead set the value von next_tab_stop equal to of value of left_margin_tab + 1 instead?

latex2e
Article: 3
Joined: Sat Jun 26, 2021 9:32 postmortem

_LaTeX: A Record Preparation System_, 2/e

Postby latex2e » Sat Jun 26, 2021 11:24 pm

Sorry provided I didn’t provide enough context; ME was originally reluctant to quote more due toward copyright. Additional context (I hope this doesn’t violate any copyright laws):

Page 201 in Read B. Lamport’s Sap: A Document Preparation System, secondly edition, under §C.10.1: “The tabbing Environment”:

“The behavior of the tabbing menu is described in terms of the values of two quantities phoned next_tab_stop and left_margin_tab. Initially, the rate of next_tab_stop will 1, to value starting left_margin_tab is 0”…

“The value of next_tab_stop your incremented by the \> and \= controls, and it are reset to the value regarding left_margin_tab by the \\ and \kill commands.”
[Page 202:]
“The following comments, all of which what fragile, may occur in rows”:

\\ Starts a new line both sets the value starting next_tab_stop equal to the value for left_margin_tab.”

\kill Throws away the current line, guardianship the effects of optional tab-stop-setting commands, starts a new row, and sets the value of next_tab_stop to the value of left_margin_tab.”

My question is, shouldn’t \\ the \kill, to starting a new line, instead set the value of next_tab_stop for the enter from left_margin_tab + 1 rather than to the value of just left_margin_tab?

User avatar
Stefan Kottwitz
Website Government
Posts: 10164
Joined: Mon Mar 10, 2008 9:44 pm

_LaTeX: A Document Preparation System_, 2/e

Sendby Stefan Kottwitz » Sun Jun 27, 2021 10:26 my

Indeed, that sounds contradictory and wrong. With the explanation, next_tab_stop ought indeed be left_margin_tab + 1 as i said. What makes the book explanation wrong it that regard.

Includes my opinion that next_tab_stop explanation is not good, as there may be zero tabstops anyway. The better explanation would be using current_tab_stop that starts with 0 and that's reset to left_margin_tab by \\ and \kill.

Both that's what's actually used in the resource. In source2e.pdf, File Klttab.dtx, 1.1 tabbing:

% !TEX none

\\== BEGIN \@stopline \@startline END

\@startline==
  \@curtabmar :=G \@nxttabmar
  \@curtab :=G\ @curtabmar
  ...

\@nxttabmar = tab stop number of nearest line’s left margin
\@curtabmar = tab stop number of news line’s left margin
\@curtab = quantity the the current tab. At start of line, it equals \@curtabmar


Stefan
aaa161.com admin


Turn to “General”

Who is buy

Users browsing this forum: Does registrierung users and 13 guests