Page 1 of 1
Conditional use of Page or Pages
Posted: Mon Jul 01, 2024 4:52 pm
by digitaltheologian
I need to render the word
Page when one page is referenced or
Pages when multiple pages are referenced.
The example above renders the logic, and now I am trying to figure out how to replace p and pp, respectively, with page and pages.
Any guidance will be greatly appreciated.
Re: Conditional use of Page or Pages
Posted: Mon Jul 01, 2024 5:07 pm
by digitaltheologian
For example:
When there is one page:
Attridge, Harold A. “Jewish Historiography.” Page 311 in
Early Judaism and Its Modern Interpreters. Edited by Robert A. Kraft and George W. E. Nickelsburg. Philadelphia: Fortress; Atlanta: Scholars Press, 1986.
When there are multiple pages:
Attridge, Harold A. “Jewish Historiography.” Pages 311–343 in
Early Judaism and Its Modern Interpreters. Edited by Robert A. Kraft and George W. E. Nickelsburg. Philadelphia: Fortress; Atlanta: Scholars Press, 1986.
This works for multiple pages, and I cannot figure out how to make this conditional:
Code: Select all
a. “t.” $Pages $p– $ in $v. l: u, d.
Re: Conditional use of Page or Pages
Posted: Mon Jul 01, 2024 5:31 pm
by digitaltheologian
I have tried using the following snippet but it always renders Pages regardless of whether or not I list a single page or a range.
Re: Conditional use of Page or Pages
Posted: Mon Jul 01, 2024 6:22 pm
by Jon
Because you're using 2 carets. It should be
$Page ^Pages $p-
And note the space after Page and Pages.
Jon
Sonny Software
Re: Conditional use of Page or Pages
Posted: Tue Jul 02, 2024 8:57 am
by digitaltheologian
Ah, thank you, Jon. I was getting confused between the single ^ and double ^.