From d92d7ff69758806c8a91a7f17c55ee20ff663d27 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 6 Mar 2020 23:08:14 -0500 Subject: [PATCH 1/2] manual: Clarify that table ranges are inclusive * doc/org-manual.org (Range references): Note that field ranges include the ends. Suggested-by: Sebastian Miele <878skdrepp.fsf@gmail.com> --- doc/org-manual.org | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/org-manual.org b/doc/org-manual.org index bc9d1bc72..8129ff160 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -1890,11 +1890,12 @@ Here are a few examples: #+cindex: range references #+cindex: references, to ranges You may reference a rectangular range of fields by specifying two -field references connected by two dots =..=. If both fields are in -the current row, you may simply use =$2..$7=, but if at least one -field is in a different row, you need to use the general =@ROW$COLUMN= -format at least for the first field, i.e., the reference must start -with =@= in order to be interpreted correctly. Examples: +field references connected by two dots =..=. The ends are included in +the range. If both fields are in the current row, you may simply use +=$2..$7=, but if at least one field is in a different row, you need to +use the general =@ROW$COLUMN= format at least for the first field, +i.e., the reference must start with =@= in order to be interpreted +correctly. Examples: #+attr_texinfo: :columns 0.2 0.8 | =$1..$3= | first three fields in the current row | From 01ee25c605a44346c2c340765bc8c2250a166ae1 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 6 Mar 2020 23:09:04 -0500 Subject: [PATCH 2/2] manual: Fix description of a table range example * doc/org-manual.org (Range references): Correct statement about the number of fields that an example range includes. Reported-by: Sebastian Miele <87eeu8kzyj.fsf@gmail.com> --- doc/org-manual.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/org-manual.org b/doc/org-manual.org index 8129ff160..46a040bb8 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -1901,7 +1901,7 @@ correctly. Examples: | =$1..$3= | first three fields in the current row | | =$P..$Q= | range, using column names (see [[*Advanced features]]) | | =$<<<..$>>= | start in third column, continue to the last but one | -| =@2$1..@4$3= | six fields between these two fields (same as =A2..C4=) | +| =@2$1..@4$3= | nine fields between these two fields (same as =A2..C4=) | | =@-1$-2..@-1= | 3 fields in the row above, starting from 2 columns on the left | | =@I..II= | between first and second hline, short for =@I..@II= |