summaryrefslogtreecommitdiff
path: root/macros/context
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-07-15 03:01:16 +0000
committerNorbert Preining <norbert@preining.info>2022-07-15 03:01:16 +0000
commit672664411215c14fc71db763da169731d3c6a361 (patch)
tree4271cb2ba5f7f1488b07cbaa63fe29df67f69554 /macros/context
parent247e399be12f89ba7ad8f79d3c582512e4913abf (diff)
CTAN sync 202207150301
Diffstat (limited to 'macros/context')
-rw-r--r--macros/context/contrib/context-simpleslides/LICENSE117
-rw-r--r--macros/context/contrib/context-simpleslides/README.md170
-rw-r--r--macros/context/contrib/context-simpleslides/VERSION2
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-BigNumber.tex71
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-BottomSquares.tex43
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Boxed.tex47
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-BoxedTitle.tex47
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Ellipse.tex53
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Embossed.tex38
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Framed.tex91
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-FramedTitle.tex43
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-FuzzyFrame.tex56
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-HorizontalStripes.tex44
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-NarrowStripes.tex23
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-PlainCounter.tex56
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-RainbowStripe.tex45
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Shaded.tex35
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-SideSquares.tex61
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Split.tex37
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Sunrise.tex44
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Swoosh.tex67
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-ThickStripes.tex23
-rw-r--r--macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-default.tex110
23 files changed, 792 insertions, 531 deletions
diff --git a/macros/context/contrib/context-simpleslides/LICENSE b/macros/context/contrib/context-simpleslides/LICENSE
new file mode 100644
index 0000000000..17cb286430
--- /dev/null
+++ b/macros/context/contrib/context-simpleslides/LICENSE
@@ -0,0 +1,117 @@
+GNU GENERAL PUBLIC LICENSE
+Version 2, June 1991
+
+Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+
+Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
+
+Preamble
+
+The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.
+
+When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
+
+To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
+
+For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
+
+We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
+
+Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
+
+Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
+
+The precise terms and conditions for copying, distribution and modification follow.
+
+TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
+
+1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
+
+2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
+
+3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
+
+If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
+
+4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
+
+5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
+
+6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
+
+7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
+
+This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
+
+8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
+
+9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
+
+10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
+
+NO WARRANTY
+
+11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+END OF TERMS AND CONDITIONS
+
+How to Apply These Terms to Your New Programs
+
+If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
+
+To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
+
+ one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author
+
+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice
diff --git a/macros/context/contrib/context-simpleslides/README.md b/macros/context/contrib/context-simpleslides/README.md
new file mode 100644
index 0000000000..aff7e23908
--- /dev/null
+++ b/macros/context/contrib/context-simpleslides/README.md
@@ -0,0 +1,170 @@
+# context-simpleslides
+
+SimpleSlides presentation module for ConTeXt<br>
+by Aditya Mahajan and Thomas A. Schmitz
+
+
+## Introduction
+
+This module is meant to facilitate writing presentations in ConTeXt. It
+provides a consistent interface and macros; there are different styles which
+give different output. The module has been written for projector-based
+presentations, so elements which are typical for screen presentations (such
+as interactive hyperlinks or tables of contents) are not included.
+The module is meant for an academic environment, specifically in the humanities.
+Hence, it has the following characteristics:
+
+* The look is rather sober. In academia, presentations are not meant to showcase fancy TeX effects; nothing should divert the audience’s attention from the content.
+* The module is written for slides which exhibit text and/or images. From my own experience with TeX-based presentations, I have provided a setup for horizontal (landscape) pictures and for vertical (portrait) pictures, which are accompanied by an area for explanatory text.
+* A simple switch in the module setup command will produce different output.
+* It is easy to customize the module or to add more styles.
+
+The macros are commented rather extensively to give users (especially users
+relatively new to ConTeXt) the chance to understand the mechanisms and
+create their own styles. Of course, I did not invent this code on my own. My
+thanks are due, as always, to Hans Hagen, whose presentation modules in the
+ConTeXt core have been a wonderful source of inspiration, to Mojca
+Miklavec, who provided help with Metapost, and to Aditya Mahajan, who helped
+tremendously in cleaning up the code and making the user interface more
+consistent.
+
+Thomas A. Schmitz
+
+## Installation
+
+The directories of this repository belong in one of the `texmf` trees,
+e.g. `texmf-local`, `texmf-project` or `texmf-modules`.
+
+It makes sense to clone it as `t-simpleslides` and merge it with the other modules,
+as outlined on the [wiki](https://wiki.contextgarden.net/Modules#ConTeXt_LMTX).
+
+Afterwards run `mtxrun --generate` to refresh the file database.
+
+To update, run `git pull` and `mtxrun --generate` again.
+
+## Example
+
+```
+\usemodule[simpleslides][
+ style=BigNumber,
+ % available options depend on the style
+ color=red,
+ %alternative=square, % "Framed" only
+ font=Gothic,
+]
+
+\setupTitle
+ [title={Presentation Title},
+ author={F.~Author, S.~Another},
+ date={Date / Occasion}]
+
+\setupexternalfigures[location={local,global,default}]
+
+\starttext
+
+\placeTitle
+
+
+\SlideTitle{Make Titles Informative}
+
+\startitemize
+ \item Use bullets points when appropriate.
+ \item Use pictures when possible
+ \item Do not put too much information on one slide
+\stopitemize
+
+\IncludePicture
+ [horizontal]
+ [cow] % Name of the image
+ {A Dutch Cow} % Title of the slide
+
+\IncludePicture
+ [horizontal]
+ [cow] % Name of the image
+ [highlight=yes,
+ grid=yes]
+ {A Dutch Cow with a grid} % Title of the slide
+
+\IncludePicture
+ [horizontal]
+ [cow] % Name of the image
+ [highlight=yes,
+ grid=yes,
+ steps=5, % Each grid block is broken into these many parts.
+ subgrid=yes]
+ {A Dutch Cow with a fine grid} % Title of the slide
+
+\IncludePicture
+ [horizontal]
+ [cow] % Name of the image
+ [highlight=yes,
+ grid=yes,
+ subgrid=yes,
+ alternative=circle,
+ color=orange,
+ x=1.4,
+ y=8.2,
+ xscale=1.5,
+ shadow=bottomleft]
+ {The head of a dutch cow}
+
+
+\IncludePicture
+ [horizontal]
+ [cow] % Name of the image
+ [highlight=yes,
+ grid=no,
+ subgrid=no,
+ alternative=circle,
+ color=orange,
+ x=1.4,
+ y=8.2,
+ xscale=1.5,
+ shadow=bottomleft]
+ {The head of a dutch cow}
+
+\IncludePicture
+ [horizontal]
+ [cow] % Name of the image
+ [highlight=yes,
+ grid=no,
+ subgrid=no,
+ alternative=arrow,
+ color=orange,
+ x=0.4,
+ y=6.8,
+ direction=-90,
+ length=3cm,
+ shadow=topright]
+ {The mouth of a dutch cow}
+
+\IncludePicture
+ [horizontal]
+ [cow] % Name of the image
+ [highlight=yes,
+ grid=no,
+ subgrid=no,
+ alternative=focus,
+ color=orange,
+ x=1.4,
+ y=8.2,
+ xscale=1.5,
+ opacity=0.5]
+ {The head of a dutch cow}
+
+\IncludePicture
+ [vertical]
+ [mill]
+ [width=\NormalWidth]
+ {The windmills are an example of a green energy source.}
+
+\SlideTitle{Summary}
+
+\startitemize
+ \item The {\em first main message} of your talk in one or two lines.
+ \item The {\em second main message} of your talk in one or two lines.
+ \item Perhaps a {\em third message}, but not more than that.
+\stopitemize
+
+\stoptext
+```
diff --git a/macros/context/contrib/context-simpleslides/VERSION b/macros/context/contrib/context-simpleslides/VERSION
index c742dc5235..dd038fd49e 100644
--- a/macros/context/contrib/context-simpleslides/VERSION
+++ b/macros/context/contrib/context-simpleslides/VERSION
@@ -1 +1 @@
-2014.06.15
+2022.07.13
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-BigNumber.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-BigNumber.tex
index 57d3b9fbe2..6612757231 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-BigNumber.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-BigNumber.tex
@@ -1,17 +1,17 @@
%D \module
%D [ file=simpleslides-s-BigNumber,
-%D version=2009.03.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module --- Big Number Style,
%D author=Aditya Mahajan and Thomas A. Schmitz,
-%D date=\currentdate
+%D date=\currentdate
%D copyright={Aditya Mahajan and Thomas A. Schmitz}]
%C
%C Copyright 2007 Aditya Mahajan and Thomas A. Schmitz
%C This file may be distributed under the GNU General Public License v. 2.0.
%D This file provides the \quotation{BigNumber} style for the presentation
-%D module. It is loaded at runtime.
+%D module. It is loaded at runtime.
\writestatus{simpleslides}{loading Big Number style}
@@ -26,9 +26,9 @@
height=fit,
leftmargindistance=.8cm,
rightmargindistance=0cm,
- header=18mm,
- footer=0cm,
- topspace=.8cm,
+ header=18mm,
+ footer=0cm,
+ topspace=.8cm,
backspace=1.9cm,
location=singlesided]
@@ -40,7 +40,7 @@
[width=\paperwidth,
height=\paperheight,x=20mm]
-%D Next we a generic frames, which will be used by other macros to
+%D Next we define generic frames, which will be used by other macros to
%D get a consistent look and feel.
\defineframed[simpleslides:framed:small]
@@ -81,22 +81,8 @@
%D The characteristic feature of this module is that the page number is drawn in
%D big letters on the slide. First we define the font used to draw the number.
-%D The is a bit verbose since \MKII\ and \MKIV\ have different ways of loading
-%D fonts.
-\beginOLDTEX
-\loadmapfile[qhv-ec.map]
-\definefontsynonym [BigNumberFont] [ec-qhvb]
-\endOLDTEX
-
-\beginXETEX
-\loadmapfile[qhv-ec.map]
-\definefontsynonym [BigNumberFont] [ec-qhvb]
-\endXETEX
-
-\beginLUATEX
\definefontsynonym [BigNumberFont] [name:texgyreherosbold]
-\endLUATEX
\definefont [NumberFont] [BigNumberFont at 30pt]
@@ -124,25 +110,25 @@ StartPage ;
save Left, Right ;
picture Left, Right ;
-Left := textext("\NumberFont \color[simpleslides:contrastcolor]{\folio}") ysized 4cm ;
-Right := textext("\NumberFont \color[simpleslides:backgroundcolor]{\folio}") ysized 4cm ;
+Left := textext("\NumberFont \color[simpleslides:contrastcolor]{\pagenumber}") ysized 4cm ;
+Right := textext("\NumberFont \color[simpleslides:backgroundcolor]{\pagenumber}") ysized 4cm ;
save LeftBox, RightBox ;
path LeftBox, RightBox ;
save split ; numeric split ;
-split := if PageNumber < 10 : 1/2 else : 3/4 fi ;
+split := if RealPageNumber < 10 : 1/2 else : 3/4 fi ;
%split := 1/2 ;
LeftBox := llcorner Left -- split[llcorner Left, lrcorner Left]
-- split[ulcorner Left, urcorner Left] -- ulcorner Left --cycle ;
-
+
RightBox := lrcorner Right -- split[lrcorner Right, llcorner Right]
-- split[urcorner Right, ulcorner Right] -- urcorner Right --cycle ;
save shft ; numeric shft ;
shft = arclength(llcorner Right -- lrcorner Right) ;
-if PageNumber >= 10 :
+if RealPageNumber >= 10 :
RightBox := RightBox shifted (shft/2, 0) ;
fi;
@@ -161,14 +147,14 @@ StopPage ;
\stopuseMPgraphic
%D We also use \METAPOST\ to draw the horizontal and vertical page backgrounds.
-
-\startuniqueMPgraphic{simpleslides:MP:horizontal}
+
+\startuniqueMPgraphic{simpleslides:MP:horizontal}
StartPage ;
fill Page withcolor \MPcolor{simpleslides:contrastcolor} ;
fill Field[Text][Text] enlarged 0.2cm
withcolor \MPcolor{simpleslides:backgroundcolor} ;
StopPage ;
-\stopuniqueMPgraphic
+\stopuniqueMPgraphic
\startuniqueMPgraphic{simpleslides:MP:vertical}
StartPage ;
@@ -190,21 +176,21 @@ StopPage ;
%D We define these backgrounds as overlays:
-\defineoverlay
- [simpleslides:background:horizontal]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:horizontal]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:vertical]
- [\useMPgraphic{simpleslides:MP:vertical}]
+\defineoverlay
+ [simpleslides:background:vertical]
+ [\useMPgraphic{simpleslides:MP:vertical}]
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:ornament]
- [\useMPgraphic{simpleslides:MP:ornament}]
+\defineoverlay
+ [simpleslides:background:ornament]
+ [\useMPgraphic{simpleslides:MP:ornament}]
%D The slide title is placed on the top of the text area. The layer takes care
%D of the positioning.
@@ -222,7 +208,7 @@ StopPage ;
\c!date\c!color=simpleslides:textcolor,
\c!author\c!color=simpleslides:textcolor]
-%D Squares are used as the first level of itemizations
+%D Squares are used as the first level of itemizations
\definesymbol[1][$\square$]
\setupitemize[1][inmargin]
@@ -232,4 +218,3 @@ StopPage ;
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-BottomSquares.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-BottomSquares.tex
index ea7bcbeba6..845fd2fb1c 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-BottomSquares.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-BottomSquares.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-BottomSquares,
-%D version=2009.03.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module --- BottomSquares style,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -12,7 +12,7 @@
%D This file provides the \quotation{BottomSquares} style for the presentation
%D module. It is loaded at runtime. This minimalistic design is inspired by a
-%D presentation Taco gave at EuroTeX 2006.
+%D presentation Taco gave at EuroTeX 2006.
\writestatus{simpleslides}{loading module BottomSquares}
@@ -27,8 +27,8 @@
margin=0cm,
height=fit,
margindistance=0cm,
- header=0cm,
- footer=0cm,
+ header=0cm,
+ footer=0cm,
topspace=1cm,
bottomspace=2cm,
backspace=1.5cm,
@@ -51,7 +51,7 @@
\define\PictureFrameWidth {.5\textwidth}
% %D We define a generic frame that is used by the slide title.
-%
+%
% \defineframed[simpleslides:framed]
% [frame=off,offset=0pt,
% top=\vss,bottom=\vss]
@@ -68,18 +68,18 @@
%AM: Why not implement this as an interaction bar?
-\startuseMPgraphic{simpleslides:MP:ornament}
+\startuseMPgraphic{simpleslides:MP:ornament}
StartPage ;
fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ;
-save diff ;numeric diff;
+save diff ;numeric diff;
diff = .3cm ;
-save w; numeric w;
+save w; numeric w;
w = xpart (lrcorner Field[Text][Text] - llcorner Field[Text][Text]) - diff ;
-save factor; numeric factor;
+save factor; numeric factor;
if NOfPages <= 1 :
factor = w ;
else :
@@ -87,30 +87,30 @@ else :
fi ;
save p; path p ;
-p = unitsquare xyscaled (diff,diff)
+p = unitsquare xyscaled (diff,diff)
shifted (xpart llcorner Field[Text][Text],0.85cm) ;
for i = 1 upto NOfPages:
- if PageNumber = i:
- fill p xyscaled (0,2) shifted ( (i-1)*factor,-diff-0.85cm)
+ if RealPageNumber = i:
+ fill p xyscaled (0,2) shifted ( (i-1)*factor,-diff-0.85cm)
withcolor \MPcolor{simpleslides:contrastcolor} ;
else :
- fill p shifted ( (i-1)*factor, 0)
+ fill p shifted ( (i-1)*factor, 0)
withcolor \MPcolor{simpleslides:variantcolor} ;
fi ;
endfor ;
StopPage ;
-\stopuseMPgraphic
+\stopuseMPgraphic
%D We define these backgrounds as overlays:
-\defineoverlay
- [simpleslides:background:ornament]
- [\useMPgraphic{simpleslides:MP:ornament}]
+\defineoverlay
+ [simpleslides:background:ornament]
+ [\useMPgraphic{simpleslides:MP:ornament}]
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:ornament}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:ornament}]
%D We want the title information to be colored
@@ -162,7 +162,7 @@ fill p[2] withcolor \MPcolor{simpleslides:contrastcolor} ;
\define[1]\Important%
{\blank[line]\midaligned{{\framed[height=5cm,width=0.9\textwidth,frame=off,background=VImportant,align=middle,offset=0pt,top=\vss,bottom=\vss,strut=no,foregroundcolor=simpleslides:backgroundcolor]{#1}}}}
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}]
\setupitemize[1][color={simpleslides:itemize:color}]
@@ -171,4 +171,3 @@ fill p[2] withcolor \MPcolor{simpleslides:contrastcolor} ;
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Boxed.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Boxed.tex
index cec5764321..61c5b1c0e5 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Boxed.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Boxed.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-Boxed,
-%D version=2009.03.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module --- Boxed Style,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -12,7 +12,7 @@
%D This file provides the \quotation{Boxed} style for the presentation
%D module. It is loaded at runtime. The look of this style was inspired by the
-%D screen version of the Metafun manual.
+%D screen version of the Metafun manual.
\writestatus{simpleslides}{loading style Boxed}
@@ -27,9 +27,9 @@
height=fit,
leftmargindistance=1cm,
rightmargindistance=0cm,
- header=2.8cm,
- footer=1cm,
- topspace=.7cm,
+ header=2.8cm,
+ footer=1cm,
+ topspace=.7cm,
backspace=2cm,
location=singlesided]
@@ -60,7 +60,7 @@
%D We let Metapost calculate the background:
-\startuniqueMPgraphic{simpleslides:MP:horizontal}
+\startuniqueMPgraphic{simpleslides:MP:horizontal}
StartPage ;
save p; path p[] ;
@@ -95,13 +95,13 @@ draw z7 -- z4 withcolor \MPcolor{simpleslides:contrastcolor} ;
draw z8 -- z3 withcolor \MPcolor{simpleslides:contrastcolor} ;
StopPage ;
-\stopuniqueMPgraphic
+\stopuniqueMPgraphic
\startuseMPgraphic{simpleslides:MP:ornament}
StartPage
save a; numeric a;
-a := 1.5cm ;
+a := 1.5cm ;
save factor, allpages, shift ;
numeric factor, allpages, shift ;
@@ -116,8 +116,8 @@ save p ;path p ;
p := fullcircle scaled 4mm shifted (a + shift/2, a/2) ;
for i = 1 upto allpages/factor :
- fill p shifted ( (i-1)*shift, 0)
- if i - 1 = floor ((PageNumber - 1)/factor) :
+ fill p shifted ( (i-1)*shift, 0)
+ if i - 1 = floor ((RealPageNumber - 1)/factor) :
withcolor \MPcolor{simpleslides:variantcolor} ;
else :
withcolor \MPcolor{simpleslides:backgroundcolor} ;
@@ -130,21 +130,21 @@ StopPage
%D We define these backgrounds as overlays:
-\defineoverlay
- [simpleslides:background:horizontal]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:horizontal]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:vertical]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:vertical]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:ornament]
- [\useMPgraphic{simpleslides:MP:ornament}]
+\defineoverlay
+ [simpleslides:background:ornament]
+ [\useMPgraphic{simpleslides:MP:ornament}]
%D The title page:
@@ -161,7 +161,7 @@ StopPage
\c!height=2.3cm,
\c!after=]
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}]
\setupitemize[1][inmargin][color={simpleslides:itemize:color}]
@@ -170,4 +170,3 @@ StopPage
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-BoxedTitle.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-BoxedTitle.tex
index c2d3211fbf..4339602482 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-BoxedTitle.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-BoxedTitle.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-BoxedTitle,
-%D version=2009.10.04
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module --- FramedTitle style,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -11,7 +11,7 @@
%C This file may be distributed under the GNU General Public License v. 2.0.
%D This file provides the \quotation{BoxedTitle} style for the presentation
-%D module. It is loaded at runtime.
+%D module. It is loaded at runtime.
\writestatus{simpleslides}{loading style BoxedTitle}
@@ -24,9 +24,9 @@
\setuplayout [width=fit,
margin=0cm,
height=fit,
- header=0cm,
- footer=0cm,
- topspace=1.35cm,
+ header=0cm,
+ footer=0cm,
+ topspace=1.35cm,
backspace=1cm,
location=singlesided]
@@ -65,14 +65,14 @@
linear_shade(p,6,\MPcolor{simpleslides:variantcolor},\MPcolor{simpleslides:contrastcolor}) ;
\stopuniqueMPgraphic
-\startuniqueMPgraphic{simpleslides:MP:horizontal}
+\startuniqueMPgraphic{simpleslides:MP:horizontal}
StartPage ;
save q ; path q ;
q = unitsquare xscaled \overlaywidth yscaled \overlayheight smoothed 7mm ;
fill Page withcolor black ;
fill q withcolor \MPcolor{simpleslides:backgroundcolor} ;
StopPage ;
-\stopuniqueMPgraphic
+\stopuniqueMPgraphic
\startuseMPgraphic{simpleslides:MP:ornament}
StartPage ;
@@ -96,7 +96,7 @@ z.b1 = z5 ;
for i = 2 upto (NOfPages + 1):
z.a[i] = z.a[(i - 1)] shifted (a,0) ;
z.b[i] = z.b[(i - 1)] shifted (a,0) ;
- for k = 2 upto (PageNumber + 1) :
+ for k = 2 upto (RealPageNumber + 1) :
z.a[k] = z.a[(k - 1)] shifted (a,0) ;
z.b[k] = z.b[(k - 1)] shifted (a,0) ;
path q[] ;
@@ -115,24 +115,24 @@ save p ; path p ;
p = unitsquare xyscaled(0.4cm,0.4cm) ;
circular_shade(p,0,\MPcolor{simpleslides:contrastcolor},\MPcolor{simpleslides:variantcolor}) ;
\stopuniqueMPgraphic
-
+
%D We define these backgrounds as overlays:
-\defineoverlay
- [simpleslides:background:horizontal]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:horizontal]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:vertical]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:vertical]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:ornament]
- [\useMPgraphic{simpleslides:MP:ornament}]
+\defineoverlay
+ [simpleslides:background:ornament]
+ [\useMPgraphic{simpleslides:MP:ornament}]
\defineoverlay
[BoxedTitle:Title]
@@ -158,7 +158,7 @@ circular_shade(p,0,\MPcolor{simpleslides:contrastcolor},\MPcolor{simpleslides:va
\c!title\c!align=,%\v!middle,
\c!author\c!style=,
\c!author\c!color=simpleslides:backgroundcolor,
- \c!author\c!align=,%\v!middle,
+ \c!author\c!align=,%\v!middle,
\c!date\c!style=,
\c!date\c!color=simpleslides:backgroundcolor,
\c!date\c!align=,%\v!middle,
@@ -184,7 +184,7 @@ circular_shade(p,0,\MPcolor{simpleslides:contrastcolor},\MPcolor{simpleslides:va
\setupPicture[verticalbackground=BoxedTitle:Title,
verticalforegroundcolor=simpleslides:backgroundcolor]
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\definesymbol[1][\uniqueMPgraphic{FilledSquare}]
\setupitemize[1][color=simpleslides:variantcolor]
@@ -193,4 +193,3 @@ circular_shade(p,0,\MPcolor{simpleslides:contrastcolor},\MPcolor{simpleslides:va
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Ellipse.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Ellipse.tex
index 79cbb9c43a..60670ecfe8 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Ellipse.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Ellipse.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-Ellipse,
-%D version=2009.03.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module Ellipse,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -12,7 +12,7 @@
%D This file provides the \quotation{Ellipse} style for the presentation
%D module. The design is inspired by Hans's "funny" presentation module
-%D (s-pre-03). It is loaded at runtime.
+%D (s-pre-03). It is loaded at runtime.
\writestatus{simpleslides}{loading Ellipse style}
@@ -25,9 +25,9 @@
\setuplayout [width=fit,
height=fit,
margin=0cm,
- header=1.2cm,
- footer=0cm,
- topspace=1.8cm,
+ header=1.2cm,
+ footer=0cm,
+ topspace=1.8cm,
backspace=1.5cm,
location=singlesided]
@@ -60,7 +60,7 @@
\startuseMPgraphic{simpleslides:MP:horizontal}
StartPage ;
fill Page withcolor \MPcolor{simpleslides:variantcolor} ;
- save p ; path p ;
+ save p ; path p ;
p := Page enlarged (-15pt,-15pt) superellipsed .9 ;
fill p withcolor \MPcolor{simpleslides:backgroundcolor} ;
pickup pencircle scaled 20pt ;
@@ -68,40 +68,40 @@ StartPage ;
StopPage ;
\stopuseMPgraphic
-\startuseMPgraphic{simpleslides:MP:ornament}
+\startuseMPgraphic{simpleslides:MP:ornament}
StartPage ;
save p ; path p ;
p := Page enlarged (-15pt,-15pt) superellipsed .9 ;
pickup pencircle scaled 20pt ;
save pa, pb; pair pa, pb ;
- if PageNumber>1:
- pa := point (3 + (6*PageNumber) / NOfPages) of p ;
- pb := point (3 + (6*(PageNumber-1)) / NOfPages) of p ;
- draw (p cutafter pa) cutbefore pb
+ if RealPageNumber>1:
+ pa := point (3 + (6*RealPageNumber) / NOfPages) of p ;
+ pb := point (3 + (6*(RealPageNumber-1)) / NOfPages) of p ;
+ draw (p cutafter pa) cutbefore pb
withcolor \MPcolor{simpleslides:altcontrastcolor} ;
fi ;
StopPage ;
-\stopuseMPgraphic
+\stopuseMPgraphic
%D We define these backgrounds as overlays:
-\defineoverlay
- [simpleslides:background:horizontal]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:horizontal]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:vertical]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:vertical]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:ornament]
- [\useMPgraphic{simpleslides:MP:ornament}]
+\defineoverlay
+ [simpleslides:background:ornament]
+ [\useMPgraphic{simpleslides:MP:ornament}]
-%D We want the title to placed in color.
+%D We want the title to placed in color.
\setupTitle[\c!headcolor={simpleslides:contrastcolor}]
@@ -117,7 +117,7 @@ StopPage ;
\setupcombinations[distance=0cm]
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}]
\setupitemize[1][\c!color={simpleslides:itemize:color}]
@@ -126,4 +126,3 @@ StopPage ;
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Embossed.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Embossed.tex
index 97b7526245..8ed078a3e7 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Embossed.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Embossed.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s--Embossed,
-%D version=2009.03.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module --- Embossed style,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -11,7 +11,7 @@
%C This file may be distributed under the GNU General Public License v. 2.0.
%D This file provides the \quotation{embossed} style for the presentation
-%D module. It is loaded at runtime.
+%D module. It is loaded at runtime.
\writestatus{simpleslides}{loading module embossed}
@@ -23,9 +23,9 @@
\setuplayout [width=fit,
margin=1.3cm,
height=fit,
- header=1cm,
- footer=1cm,
- topspace=10mm,
+ header=1cm,
+ footer=1cm,
+ topspace=10mm,
backspace=2cm,
location=singlesided]
@@ -69,25 +69,14 @@
%D This module write "Made with ConTeXt" in bold at the bottom. We first define
%D a font for it.
-\beginOLDTEX
-\loadmapfile[qhv-ec.map]
-\definefontsynonym [Embossed] [ec-qhvb]
-\endOLDTEX
-
-\beginXETEX
-\loadmapfile[qhv-ec.map]
-\definefontsynonym [Embossed] [ec-qhvb]
-\endXETEX
-
-\beginLUATEX
\definefontsynonym [Embossed] [name:texgyreherosbold]
-\endLUATEX
\definefont[EmblemFont] [Embossed at 30pt]
-%D The emblem string is configurable.
+%D Some strings are configurable.
-\setuplabeltext [\s!en] [simpleslidesemblem={Made with \CONTEXT}]
+\setuplabeltext [\s!en] [simpleslidesemblem={Made with \CONTEXT},of=of]
+\setuplabeltext [\s!de] [simpleslidesemblem={Gesetzt mit \CONTEXT},of=von]
\definetextext[simpleslides:sometxt:left] {\TaspresentSometxtLeft}
\definetextext[simpleslides:sometxt:right]{\TaspresentSometxtRight}
@@ -118,17 +107,17 @@ bottom = llcorner Page -- z1 -- z2 -- lrcorner Page -- cycle ;
fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ;
fill bottom withcolor \MPcolor{simpleslides:variantcolor} ;
-draw Page withcolor \MPcolor{simpleslides:framecolor}
+draw Page withcolor \MPcolor{simpleslides:framecolor}
withpen pencircle scaled 12pt ;
draw topboundary bottom withcolor \MPcolor{simpleslides:framecolor}
withpen pencircle scaled 6pt ;
-draw \sometxt[simpleslides:sometxt:left]{\labeltext{simpleslidesemblem} \hfill \pagenumber\ of \lastpage}
+draw \sometxt[simpleslides:sometxt:left]{\labeltext{simpleslidesemblem} \hfill \pagenumber\ \labeltext{of} \lastpage}
shifted (1.96cm,0.04cm) ;
-draw \sometxt[simpleslides:sometxt:right]{\labeltext{simpleslidesemblem} \hfill \pagenumber\ of \lastpage}
- shifted (2cm,0) ;
+draw \sometxt[simpleslides:sometxt:right]{\labeltext{simpleslidesemblem} \hfill \pagenumber\ \labeltext{of} \lastpage}
+ shifted (2cm,0) ;
StopPage ;
\stopuseMPgraphic
@@ -160,7 +149,7 @@ StopPage ;
\c!align=\v!middle]
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}]
\setupitemize[1][color={simpleslides:itemize:color}]
@@ -169,4 +158,3 @@ StopPage ;
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Framed.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Framed.tex
index 63e4d8054f..6bb446c1ae 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Framed.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Framed.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-Framed,
-%D version=2009.03.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module --- Framed Style,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -11,7 +11,7 @@
%C This file may be distributed under the GNU General Public License v. 2.0.
%D This file provides the \quotation{Framed} style for the presentation
-%D module. It is loaded at runtime.
+%D module. It is loaded at runtime.
\writestatus{simpleslides}{loading style Framed}
@@ -23,11 +23,11 @@
\setuplayout [width=fit,
margin=0.6cm,
- height=fit,
- header=2.1cm,
- footer=1.35cm,
+ height=fit,
+ header=2.1cm,
+ footer=1.35cm,
footerdistance=0.5cm,
- topspace=0.5cm,
+ topspace=0.5cm,
backspace=1cm,
location=singlesided]
@@ -60,7 +60,7 @@
%D ornaments, square or stripes. We define both, and then choose one depending
%D on the user's choice.
-\startuseMPgraphic{simpleslides:MP:ornament:square}
+\startuseMPgraphic{simpleslides:MP:ornament:square}
StartPage;
save a,b,c,p;
@@ -77,15 +77,15 @@ endfor ;
if NOfPages >= 12:
save n ; numeric n ;
- n := (10*(PageNumber - 1) div (NOfPages - 1)) + 1;
+ n := (10*(RealPageNumber - 1) div (NOfPages - 1)) + 1;
- draw llcorner p[n] -- urcorner p[n]
- withpen pencircle scaled 2pt
+ draw llcorner p[n] -- urcorner p[n]
+ withpen pencircle scaled 2pt
withcolor \MPcolor{simpleslides:backgroundcolor} ;
fi ;
StopPage;
-\stopuseMPgraphic
+\stopuseMPgraphic
\startuseMPgraphic{simpleslides:MP:ornament:stripe}
StartPage;
@@ -100,11 +100,11 @@ linear_shade(p[1],0,
\MPcolor{simpleslides:contrastcolor}) ;
save i ;
-numeric i;
-if NOfPages = 0 :
- i = PageNumber ;
-else :
- i = PageNumber/NOfPages ;
+numeric i;
+if NOfPages = 0 :
+ i = RealPageNumber ;
+else :
+ i = RealPageNumber/NOfPages ;
fi ;
p[2] = ulcorner p[1] -- urcorner p[1] ;
@@ -123,56 +123,56 @@ clip currentpicture to p[4] ;
StopPage;
\stopuseMPgraphic
-\startuniqueMPgraphic{simpleslides:MP:vertical}
+\startuniqueMPgraphic{simpleslides:MP:vertical}
StartPage ;
-fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ;
+fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ;
-draw Page enlarged (-.2cm)
- withpen pencircle scaled 4pt
- withcolor \MPcolor{simpleslides:framecolor} ;
+draw Page enlarged (-.2cm)
+ withpen pencircle scaled 4pt
+ withcolor \MPcolor{simpleslides:framecolor} ;
-draw unitsquare
- xyscaled(0.448*PaperWidth,0.815*PaperHeight)
+draw unitsquare
+ xyscaled(0.448*PaperWidth,0.815*PaperHeight)
shifted (0.528*PaperWidth, 0.15*PaperHeight)
- withpen pencircle scaled 2pt
- withcolor \MPcolor{simpleslides:framecolor} ;
+ withpen pencircle scaled 2pt
+ withcolor \MPcolor{simpleslides:framecolor} ;
StopPage ;
-\stopuniqueMPgraphic
+\stopuniqueMPgraphic
-\startuniqueMPgraphic{simpleslides:MP:horizontal}
+\startuniqueMPgraphic{simpleslides:MP:horizontal}
StartPage ;
-fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ;
+fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ;
-draw Page enlarged (-.2cm)
- withpen pencircle scaled 4pt
- withcolor \MPcolor{simpleslides:framecolor} ;
+draw Page enlarged (-.2cm)
+ withpen pencircle scaled 4pt
+ withcolor \MPcolor{simpleslides:framecolor} ;
draw unitsquare
- xyscaled(0.95*PaperWidth,0.7*PaperHeight)
+ xyscaled(0.95*PaperWidth,0.7*PaperHeight)
shifted (0.025*PaperWidth, 0.15*PaperHeight)
- withpen pencircle scaled 2pt
- withcolor \MPcolor{simpleslides:framecolor} ;
+ withpen pencircle scaled 2pt
+ withcolor \MPcolor{simpleslides:framecolor} ;
StopPage;
-\stopuniqueMPgraphic
+\stopuniqueMPgraphic
%D We define these backgrounds as overlays:
-\defineoverlay
- [simpleslides:background:horizontal]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:horizontal]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:vertical]
- [\useMPgraphic{simpleslides:MP:vertical}]
+\defineoverlay
+ [simpleslides:background:vertical]
+ [\useMPgraphic{simpleslides:MP:vertical}]
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
%D We define the ornament according to user's choice.
@@ -216,7 +216,7 @@ StopPage;
\c!height=2.1cm,
\c!after=]
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}]
\setupitemize[1][color={simpleslides:itemize:color}]
@@ -225,4 +225,3 @@ StopPage;
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-FramedTitle.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-FramedTitle.tex
index 8ba572024a..25b454481e 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-FramedTitle.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-FramedTitle.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-FramedTitle,
-%D version=2009.03.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module --- FramedTitle style,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -25,9 +25,9 @@
\setuplayout [width=fit,
margin=0cm,
height=fit,
- header=2.2cm,
- footer=.8cm,
- topspace=.6cm,
+ header=2.2cm,
+ footer=.8cm,
+ topspace=.6cm,
backspace=1cm,
location=singlesided]
@@ -61,11 +61,11 @@
%D We let Metapost calculate the background:
-\startuniqueMPgraphic{simpleslides:MP:horizontal}
+\startuniqueMPgraphic{simpleslides:MP:horizontal}
StartPage ;
fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ;
StopPage ;
-\stopuniqueMPgraphic
+\stopuniqueMPgraphic
\startuseMPgraphic{simpleslides:MP:ornament}
StartPage ;
@@ -83,7 +83,7 @@ pickup pencircle scaled 3pt ;
for i := NOfPages-1 downto 1:
draw (if i mod 5 = 0 : q else : p fi)
shifted (i*5pt, 0pt)
- withcolor if i < PageNumber : \MPcolor{simpleslides:contrastcolor}
+ withcolor if i < RealPageNumber : \MPcolor{simpleslides:contrastcolor}
else : \MPcolor{simpleslides:variantcolor}
fi ;
endfor ;
@@ -92,21 +92,21 @@ StopPage ;
%D We define these backgrounds as overlays:
-\defineoverlay
- [simpleslides:background:horizontal]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:horizontal]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:vertical]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:vertical]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:ornament]
- [\useMPgraphic{simpleslides:MP:ornament}]
+\defineoverlay
+ [simpleslides:background:ornament]
+ [\useMPgraphic{simpleslides:MP:ornament}]
%D We want the title to placed in a framed box. We redefine all the keys of
%D \type{\setupTitle}, so that the module is easier to maintain.
@@ -128,7 +128,7 @@ StopPage ;
\c!title\c!align=\v!middle,
\c!author\c!style=,
\c!author\c!color=simpleslides:backgroundcolor,
- \c!author\c!align=\v!middle,
+ \c!author\c!align=\v!middle,
\c!date\c!style=,
\c!date\c!color=simpleslides:backgroundcolor,
\c!date\c!align=\v!middle,
@@ -149,7 +149,7 @@ StopPage ;
\c!color=simpleslides:backgroundcolor]
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}]
\setupitemize[1][color=simpleslides:contrastcolor]
@@ -158,4 +158,3 @@ StopPage ;
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-FuzzyFrame.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-FuzzyFrame.tex
index 4e96b61cfb..645b24453b 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-FuzzyFrame.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-FuzzyFrame.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-SideToc,
-%D version=2010.02.09,
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module --- SideToc style,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -11,7 +11,7 @@
%C This file may be distributed under the GNU General Public License v. 2.0.
%D This file provides the \quotation{SideToc} style for the presentation
-%D module. It is loaded at runtime.
+%D module. It is loaded at runtime.
\writestatus{simpleslides}{loading Fuzzy Frame style}
@@ -25,12 +25,12 @@
\setuplayout [simpleslides:layout:vertical]
[leftmargin=0cm,
rightmargin=0cm,
- header=0.1cm,
+ header=0.1cm,
headerdistance=1.7cm,
- header=0cm,
+ header=0cm,
headerdistance=0cm,
- footer=0cm,
- topspace=1cm,
+ footer=0cm,
+ topspace=1cm,
backspace=1cm,
bottomspace=0cm,
bottom=0pt,
@@ -40,11 +40,11 @@
[width=fit,
leftmargin=0cm,
rightmargin=0cm,
- height=fit,
- header=0.1cm,
+ height=fit,
+ header=0.1cm,
headerdistance=1.7cm,
- footer=0cm,
- topspace=1cm,
+ footer=0cm,
+ topspace=1cm,
backspace=1cm,
bottomspace=0cm,
bottom=0pt,
@@ -54,11 +54,11 @@
[width=fit,
leftmargin=0cm,
rightmargin=0cm,
- height=fit,
- header=0cm,
+ height=fit,
+ header=0cm,
headerdistance=0cm,
- footer=0cm,
- topspace=1cm,
+ footer=0cm,
+ topspace=1cm,
backspace=1cm,
bottomspace=0cm,
bottom=0pt,
@@ -141,10 +141,10 @@ z[2] = z[1] shifted (0, d) ;
save p ; path p[] ;
p[1] = z[1] -- z[2] ;
pickup pencircle scaled 0.5pt ;
-r = 150*(PageNumber/NOfPages) ;
+r = 150*(RealPageNumber/NOfPages) ;
z[3] = z[1] shifted (r, -4pt) ;
for i=1 upto 150 :
- draw p[1] shifted (i*s/150, 0) randomized 2pt withcolor
+ draw p[1] shifted (i*s/150, 0) randomized 2pt withcolor
(if i < r : \MPcolor{simpleslides:contrastcolor}
else : \MPcolor{simpleslides:altcontrastcolor}
fi) ;
@@ -153,7 +153,7 @@ StopPage ;
\stopuseMPgraphic
\startuseMPgraphic{simpleslides:MP:ornament}
-StartPage ;
+StartPage ;
save v, s, l, r ; numeric v, s, l, r ;
save p ; path p ;
v = 0.8cm ;
@@ -161,10 +161,10 @@ s = 0.33*PaperWidth ;
z[1] = (0,0) shifted (s,v) ;
z[2] = (PaperWidth,0) shifted (-s,v) ;
l = arclength (z[1] --z[2]) ;
-r = (l*PageNumber/NOfPages) ;
+r = (l*RealPageNumber/NOfPages) ;
z[3] = z[1] shifted (-5mm, -3mm) ;
z[4] = z[1] shifted (-5mm, 3mm) ;
-if PageNumber = NOfPages :
+if RealPageNumber = NOfPages :
z[5] = z[1] shifted (r+5mm,-3mm) ;
z[6] = z[1] shifted (r+5mm,3mm) ;
else:
@@ -178,7 +178,7 @@ pickup pencircle scaled .5pt ;
draw p randomized 12pt withcolor \MPcolor{simpleslides:altcontrastcolor} ;
endfor ;
picture old ; old := currentpicture ;
-clip old to z[3] -- z[4] -- z[6] -- z[5] -- cycle ;
+clip old to z[3] -- z[4] -- z[6] -- z[5] -- cycle ;
draw old withcolor \MPcolor{simpleslides:contrastcolor} ;
StopPage ;
\stopuseMPgraphic
@@ -193,15 +193,15 @@ StopPage ;
[simpleslides:background:vertical]
[\useMPgraphic{simpleslides:MP:vertical}]
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:title}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:title}]
-\defineoverlay
- [simpleslides:background:ornament]
+\defineoverlay
+ [simpleslides:background:ornament]
[\useMPgraphic{simpleslides:MP:ornament2}]
-%D We want the title to placed in color.
+%D We want the title to placed in color.
\setupTitle
[\c!title=,
@@ -217,7 +217,7 @@ StopPage ;
\c!title\c!align=\v!middle,
\c!author\c!style=,
\c!author\c!color={simpleslides:contrastcolor},
- \c!author\c!align=\v!middle,
+ \c!author\c!align=\v!middle,
\c!date\c!style=,
\c!date\c!color={simpleslides:contrastcolor},
\c!date\c!align=\v!middle,
@@ -237,7 +237,7 @@ StopPage ;
\c!height=2.5cm,
\c!color=black]
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\startuseMPgraphic{simpleslides:itemize:square}
save p ; path p[] ;
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-HorizontalStripes.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-HorizontalStripes.tex
index 37aa554d86..13856fdf08 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-HorizontalStripes.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-HorizontalStripes.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-HorizontalStripes,
-%D version=2009.03.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module HorizontalStripes,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -26,9 +26,9 @@
\setuplayout [width=fit,
margin=0cm,
height=fit,
- header=2.73cm,
- footer=0.9cm,
- topspace=0cm,
+ header=2.73cm,
+ footer=0.9cm,
+ topspace=0cm,
backspace=1cm,
location=singlesided]
@@ -36,6 +36,11 @@
\setuplayout [simpleslides:layout:vertical] [header=0.75cm]
\setuplayout [simpleslides:layout:title] [header=0cm]
+%D Some strings are configurable.
+
+\setuplabeltext [\s!en] [of=of]
+\setuplabeltext [\s!de] [of=von]
+
%D In this style, we don't want the ornament background for vertical slides:
\startsetups simpleslides:background:vertical
@@ -91,8 +96,8 @@
%D We let Metapost calculate the background:
-\startuseMPgraphic{simpleslides:MP:common}
-save a ; numeric a ;
+\startuseMPgraphic{simpleslides:MP:common}
+save a ; numeric a ;
a = 1.5mm ;
save p; path p[] ;
@@ -111,7 +116,7 @@ p[4] = p[3] shifted (0,.75cm) ;
fill p[1] withcolor \MPcolor{simpleslides:framecolor} ;
fill p[3] withcolor \MPcolor{simpleslides:framecolor} ;
fill p[4] withcolor \MPcolor{simpleslides:framecolor} ;
-\stopuseMPgraphic
+\stopuseMPgraphic
\startuniqueMPgraphic{simpleslides:MP:vertical}
StartPage ;
@@ -130,17 +135,17 @@ StopPage ;
%D We define these backgrounds as overlays:
-\defineoverlay
- [simpleslides:background:horizontal]
- [\useMPgraphic{simpleslides:MP:horizontal}]
-
-\defineoverlay
- [simpleslides:background:vertical]
- [\useMPgraphic{simpleslides:MP:vertical}]
+\defineoverlay
+ [simpleslides:background:horizontal]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:vertical}]
+\defineoverlay
+ [simpleslides:background:vertical]
+ [\useMPgraphic{simpleslides:MP:vertical}]
+
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:vertical}]
%D We define the footer
@@ -152,7 +157,7 @@ StopPage ;
\c!height=0.65cm,
\c!width=\textwidth]
{\simpleslidestitleparameter{title}
- \hfill \pagenumber\ of \lastpage}}]
+ \hfill \pagenumber\ \labeltext{of} \lastpage}}]
%D this sets up the title page:
@@ -172,7 +177,7 @@ StopPage ;
\c!height=2.2cm,
\c!after=]
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}]
\setupitemize[1][color={simpleslides:itemize:color}]
@@ -181,4 +186,3 @@ StopPage ;
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-NarrowStripes.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-NarrowStripes.tex
index 471eb208e3..29431e026a 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-NarrowStripes.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-NarrowStripes.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-NarrowStripes,
-%D version=2009.03.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module NarrowStripes,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -27,10 +27,10 @@
rightmargin=0cm,
leftmargindistance=1.8cm,
rightmargindistance=0pt,
- height=fit,
- header=2.5cm,
- footer=0cm,
- topspace=.4cm,
+ height=fit,
+ header=2.5cm,
+ footer=0cm,
+ topspace=.4cm,
backspace=3.2cm,
cutspace=3.7cm,
bottomspace=0cm,
@@ -127,8 +127,8 @@ linear_shade(p[2],2,
fill p[3] withcolor \MPcolor{simpleslides:variantcolor} ;
-if PageNumber > 1:
- draw \sometxt[simpleslides:sometxt:text]{\folio} shifted (0,PaperHeight-a) ;
+if RealPageNumber > 1:
+ draw \sometxt[simpleslides:sometxt:text]{\pagenumber} shifted (0,PaperHeight-a) ;
fi ;
StopPage ;
\stopuseMPgraphic
@@ -137,9 +137,9 @@ StopPage ;
[simpleslides:background:ornament]
[\useMPgraphic{simpleslides:MP:ornament}]
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:ornament}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:ornament}]
%D this sets up the title page:
@@ -158,7 +158,7 @@ StopPage ;
\c!height=2.25cm,
\c!after=]
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}]
\setupitemize[1][inmargin][color={simpleslides:itemize:color}]
@@ -167,4 +167,3 @@ StopPage ;
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-PlainCounter.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-PlainCounter.tex
index d3044b75e0..848d4e5fa1 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-PlainCounter.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-PlainCounter.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-PlainCounter,
-%D version=2009.07.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module --- Plain Counter,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -11,7 +11,7 @@
%C This file may be distributed under the GNU General Public License v. 2.0.
%D This file provides the \quotation{PlainCounter} style for the presentation
-%D module. It is loaded at runtime.
+%D module. It is loaded at runtime.
\writestatus{simpleslides}{loading Plain Counter style}
@@ -21,7 +21,7 @@
%D First, we change the page layout to have more space all around
-\setuplayout
+\setuplayout
[\c!topspace=2\lineheight,
\c!top=2\lineheight,
\c!topdistance=0cm,
@@ -51,7 +51,7 @@
\definecolor [simpleslides:variantcolor] [s=.8]
\definecolor [simpleslides:contrastcolor] [b=.5]
\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor]
-\definecolor [simpleslides:altcontrastcolor] [r=.95]
+\definecolor [simpleslides:altcontrastcolor] [r=.95]
\definecolor [simpleslides:imp:background] [r=1,g=1,b=0.85]
\stopsetups
@@ -60,7 +60,7 @@
\definecolor [simpleslides:variantcolor] [s=.9]
\definecolor [simpleslides:contrastcolor] [b=.65]
\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor]
-\definecolor [simpleslides:altcontrastcolor] [r=.95]
+\definecolor [simpleslides:altcontrastcolor] [r=.95]
\definecolor [simpleslides:imp:background] [r=1,g=1,b=0.85]
\stopsetups
@@ -80,8 +80,8 @@
\c!after\c!title=\vfill,
afterauthor={\vfill\vfill},
\c!after={\vfill}]
-
-\startuniqueMPgraphic{simpleslides:MP:horizontal}
+
+\startuniqueMPgraphic{simpleslides:MP:horizontal}
StartPage ;
fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ;
StopPage
@@ -90,7 +90,7 @@ StopPage
\startuseMPgraphic{simpleslides:MP:ornament}
StartPage ;
-save a, b;
+save a, b;
numeric a,b;
b = PaperWidth/2 - NOfPages*5pt/2 ;
@@ -98,33 +98,33 @@ save p,q ; path p, q;
p =((0,15bp) -- (3bp,30bp)) shifted (b,0);
q =((-22bp,15bp) -- (0,30bp) ) shifted (b,0);
for i := NOfPages-1 downto 1:
- draw (if i mod 5 = 0 : q else : p fi)
+ draw (if i mod 5 = 0 : q else : p fi)
randomized 1bp
shifted (i*5pt,0)
- withcolor (if i < RealPageNumber : \MPcolor{simpleslides:contrastcolor}
+ withcolor (if i < RealRealPageNumber : \MPcolor{simpleslides:contrastcolor}
else : \MPcolor{simpleslides:variantcolor}
- fi)
+ fi)
withpen pencircle scaled (1bp randomized .5bp) ;
endfor ;
StopPage ;
\stopuseMPgraphic
-\defineoverlay
- [simpleslides:background:horizontal]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:horizontal]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:vertical]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:vertical]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:ornament]
- [\useMPgraphic{simpleslides:MP:ornament}]
+\defineoverlay
+ [simpleslides:background:ornament]
+ [\useMPgraphic{simpleslides:MP:ornament}]
@@ -133,7 +133,7 @@ StopPage ;
style={\switchtobodyfont[\SlideTitleSize]\bolditalic},
color=simpleslides:contrastcolor]
-% \setuphead
+% \setuphead
% [subsubject]
% [numberstyle=bolditalic, textstyle=bolditalic,color=darkblue,style=\tfb,
% before=\blank,after=\blank]
@@ -145,7 +145,7 @@ StopPage ;
\setupcombinations[\c!distance=3em]
-\setupitemize[\c!color=simpleslides:itemize:color,
+\setupitemize[\c!color=simpleslides:itemize:color,
\c!headstyle=\tfa,
\c!headcolor=simpleslides:itemize:color]
@@ -155,9 +155,9 @@ StopPage ;
\setupitemize[2][\c!headstyle=\v!bold, \c!headcolor=]
\definesymbol[2][\useMPgraphic{simpleslides:itemize:triangle}]
-\definesymbol[1][{\symbol[circle]}]
-\definesymbol[2][{\symbol[triangle]}]
-\definesymbol[3][{\symbol[dash]}]
+\definesymbol[1][{\symbol[circle]}]
+\definesymbol[2][{\symbol[triangle]}]
+\definesymbol[3][{\symbol[dash]}]
\protect
\stopmodule
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-RainbowStripe.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-RainbowStripe.tex
index f2bf47f093..e982bec0a0 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-RainbowStripe.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-RainbowStripe.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-t-RainbowStripe,
-%D version=2009.03.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module RainbowStripe,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -11,7 +11,7 @@
%C This file may be distributed under the GNU General Public License v. 2.0.
%D This file provides the \quotation{RainbowStripe} style for the presentation
-%D module. It is loaded at runtime.
+%D module. It is loaded at runtime.
\writestatus{simpleslides}{loading RainbowStripe style}
@@ -24,9 +24,9 @@
\setuplayout [width=fit,
margin=1.5cm,
height=fit,
- header=11mm,
- footer=0cm,
- topspace=15mm,
+ header=11mm,
+ footer=0cm,
+ topspace=15mm,
backspace=2cm,
location=singlesided]
@@ -69,7 +69,7 @@
%\setupexternalfigures[location={global}]
-%\defineoverlay[rainb][{\externalfigure[rainbow.pdf][width=1.05\textwidth,height=1.4\textheight]}]
+%\defineoverlay[rainb][{\externalfigure[rainbow.pdf][width=1.05\textwidth,height=1.4\textheight]}]
% \startuniqueMPgraphic{gray}
% StartPage ;
@@ -169,11 +169,11 @@ StopPage ;
StartPage
path p[] ;
p[1] := unitsquare xyscaled(MakeupWidth,.4cm) shifted (2cm,0.7cm) ;
-numeric i;
+numeric i;
if NOfPages <= 1 :
- i = (PageNumber - 1) ;
+ i = (RealPageNumber - 1) ;
else :
- i = (PageNumber - 1)/(NOfPages - 1) ;
+ i = (RealPageNumber - 1)/(NOfPages - 1) ;
fi ;
p[2] = ulcorner p[1] -- urcorner p[1] ;
p[3] = llcorner p[1] -- lrcorner p[1] ;
@@ -189,21 +189,21 @@ StopPage
%D We define these backgrounds as overlays:
-\defineoverlay
- [simpleslides:background:horizontal]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:horizontal]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:vertical]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:vertical]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:ornament]
- [\useMPgraphic{simpleslides:MP:ornament}]
+\defineoverlay
+ [simpleslides:background:ornament]
+ [\useMPgraphic{simpleslides:MP:ornament}]
%D We set up our SlideTitles:
@@ -214,7 +214,7 @@ StopPage
\c!align=\v!center,
\c!height=1.5cm]
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}]
\setupitemize[1][inmargin]
@@ -223,4 +223,3 @@ StopPage
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Shaded.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Shaded.tex
index a8da39b1c2..3f2a5f4321 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Shaded.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Shaded.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-Shaded,
-%D version=2009.03.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module --- Shaded style,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -11,7 +11,7 @@
%C This file may be distributed under the GNU General Public License v. 2.0.
%D This file provides the \quotation{Shaded} style for the presentation
-%D module. It is loaded at runtime.
+%D module. It is loaded at runtime.
\writestatus{simpleslides}{loading Shaded style}
@@ -25,10 +25,10 @@
margin=1.5cm,
leftmargindistance=0pt,
rightmargindistance=0pt,
- height=fit,
- header=0pt,
- footer=0pt,
- topspace=.8cm,
+ height=fit,
+ header=0pt,
+ footer=0pt,
+ topspace=.8cm,
backspace=1.5cm,
bottomspace=1cm,
bottom=1cm,
@@ -86,7 +86,7 @@
\startuseMPgraphic{simpleslides:MP:ornament}
StartPage ;
save p ; path p[] ;
-save a ;
+save a ;
if NOfPages <= 15:
a = 0.7cm ;
elseif NOfPages <= 30:
@@ -99,10 +99,10 @@ factor = (TextWidth - a)/(NOfPages - 1) ;
linear_shade(Page, 6,
\MPcolor{simpleslides:backgroundcolor},
\MPcolor{simpleslides:variantcolor}) ;
-if PageNumber >1:
+if RealPageNumber >1:
for i = 1 upto NOfPages :
p[i] = unitcircle scaled a shifted (BackSpace + (i-1)*factor, (2cm - a)/2) ;
- if i = PageNumber :
+ if i = RealPageNumber :
% p[i] := p[i] zscaled (1.2,1.5) ;
pickup pencircle scaled 5pt ;
drawfill p[i] withcolor \MPcolor{simpleslides:variantcolor} ;
@@ -121,26 +121,26 @@ StopPage ;
[simpleslides:background:ornament]
[\useMPgraphic{simpleslides:MP:ornament}]
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:ornament}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:ornament}]
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}]
\setupitemize[1][color={simpleslides:itemize:color}]
-
+
% %D The \quotation{Shaded} style uses \CONTEXT's interactionbar:
-%
+%
% \setupsubpagenumber[way=bytext,state=start]
-%
+%
% \setupinteraction
% [page=yes,
% color=simpleslides:interactioncolor,
% contrastcolor=simpleslides:contrastcolor,
% menu=on,
% state=start]
-%
+%
% %\setupinteractionbar
% %\startinteractionmenu[bottom]
% \setupbottomtexts[XXX{\interactionbar[state=start,alternative=e,width=8cm,height=0.2cm,step=small,frame=on]}YYY]
@@ -152,4 +152,3 @@ StopPage ;
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-SideSquares.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-SideSquares.tex
index 08d588408a..ddefc136de 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-SideSquares.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-SideSquares.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-SideSquares,
-%D version=2009.03.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module SideSquares,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -11,7 +11,7 @@
%C This file may be distributed under the GNU General Public License v. 2.0.
%D This file provides the \quotation{SideSquares} style for the presentation
-%D module. It is loaded at runtime.
+%D module. It is loaded at runtime.
\writestatus{simpleslides}{loading SideSquares style}
@@ -27,9 +27,9 @@
height=fit,
leftmargindistance=.4cm,
rightmargindistance=0cm,
- header=1.5cm,
- footer=0cm,
- topspace=1cm,
+ header=1.5cm,
+ footer=0cm,
+ topspace=1cm,
backspace=2.5cm,
cutspace=1.5cm,
location=singlesided]
@@ -59,7 +59,7 @@
%D We let Metapost calculate the background:
-\startuseMPgraphic{simpleslides:MP:horizontal}
+\startuseMPgraphic{simpleslides:MP:horizontal}
StartPage ;
fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ;
z1 = ulcorner Page ;
@@ -69,9 +69,9 @@ q = z1 -- z5 ;
t := arclength (q) ;
u := t/15 ;
if NOfPages = 0 :
- v := PageNumber ;
+ v := RealPageNumber ;
else :
- v := (PageNumber/NOfPages) ;
+ v := (RealPageNumber/NOfPages) ;
fi ;
z4 = (x1+1cm, y1-1cm) ;
z3 = (x4, y1) ;
@@ -88,45 +88,45 @@ m[8] = m[1] shifted (0, (-14*u-0.5mm)) ;
for i=1 upto 8:
fill m[i] withcolor\MPcolor{simpleslides:contrastcolor} ;
endfor;
-if PageNumber=1:
+if RealPageNumber=1:
fill m[1] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
elseif (v>.001) and (v<.167) :
- fill m[2] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
+ fill m[2] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
elseif (v>.166) and (v<.334):
- fill m[3] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
+ fill m[3] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
elseif (v>.333) and (v<.501):
- fill m[4] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
+ fill m[4] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
elseif (v>.5) and (v<.667):
- fill m[5] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
+ fill m[5] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
elseif (v>.666) and (v<.834):
- fill m[6] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
+ fill m[6] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
elseif (v>.833) and (v<1):
- fill m[7] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
+ fill m[7] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
elseif v=1:
fill m[8] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
fi ;
StopPage ;
-\stopuseMPgraphic
+\stopuseMPgraphic
%D We define these backgrounds as overlays:
-\defineoverlay
- [simpleslides:background:horizontal]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:horizontal]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:vertical]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:vertical]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:ornament]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:ornament]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-%D We want the title to placed in color.
+%D We want the title to placed in color.
\setupTitle[\c!headcolor={simpleslides:contrastcolor}]
@@ -149,7 +149,7 @@ StopPage ;
\setupcombinations[distance=0cm]
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\definesymbol[1][$\square$]
\setupitemize[1][inmargin][color=simpleslides:itemize:color]
@@ -158,4 +158,3 @@ StopPage ;
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Split.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Split.tex
index 360307835e..a62b1666e9 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Split.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Split.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-Split,
-%D version=2009.03.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module --- Split style,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -28,9 +28,9 @@
\setuplayout [width=fit,
margin=0cm,
height=fit,
- header=3.2cm,
- footer=.5cm,
- topspace=.6cm,
+ header=3.2cm,
+ footer=.5cm,
+ topspace=.6cm,
backspace=1cm,
location=singlesided]
@@ -43,6 +43,12 @@
\setuplayer[simpleslides:layer:slidetitle]
[x=10mm,y=12mm]
+%D Some strings are configurable.
+
+\setuplabeltext [\s!en] [of=of]
+\setuplabeltext [\s!de] [of=von]
+
+
%D These macros are used for placing figures/pictures:
\define\NormalHeight {\textheight}
@@ -89,7 +95,7 @@
%D Now we use \METAPOST\ to draw a page ornament, which will then be inherited
%D by different backgrounds.
-\startuseMPgraphic{simpleslides:MP:ornament}
+\startuseMPgraphic{simpleslides:MP:ornament}
StartPage ;
save p, Main, a ;
path p[] ; path Main ;
@@ -120,7 +126,7 @@ fill p[4] withcolor \MPcolor{simpleslides:contrastcolor} ;
draw \sometxt[simpleslides:sometxt:left]{\getvariable{simpleslides:title}{date}}
shifted (1cm,y1) ;
-draw \sometxt[simpleslides:sometxt:right]{\folio\ of \lastpage}
+draw \sometxt[simpleslides:sometxt:right]{\pagenumber\ \labeltext{of} \lastpage}
shifted (x5,y1) ;
draw \sometxt[simpleslides:sometxt:left]{\getvariable{simpleslides:title}{author}}
@@ -130,17 +136,17 @@ draw \sometxt[simpleslides:sometxt:right]{\getvariable{simpleslides:title}{title
shifted (x5,0) ;
StopPage ;
-\stopuseMPgraphic
+\stopuseMPgraphic
%D We use this ornament in different backgrounds.
-\defineoverlay
- [simpleslides:background:ornament]
- [\useMPgraphic{simpleslides:MP:ornament}]
+\defineoverlay
+ [simpleslides:background:ornament]
+ [\useMPgraphic{simpleslides:MP:ornament}]
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:ornament}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:ornament}]
%D We want the title to placed in a framed box. We redefine all the keys of
%D \type{\setupTitle}, so that the module is easier to maintain.
@@ -162,7 +168,7 @@ StopPage ;
\c!title\c!align=,%\v!middle,
\c!author\c!style=,
\c!author\c!color=,
- \c!author\c!align=,%\v!middle,
+ \c!author\c!align=,%\v!middle,
\c!date\c!style=,
\c!date\c!color=,
\c!date\c!align=,%\v!middle,
@@ -183,7 +189,7 @@ StopPage ;
\c!color=simpleslides:backgroundcolor]
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}]
\setupitemize[1][\c!color={simpleslides:itemize:color}]
@@ -192,4 +198,3 @@ StopPage ;
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Sunrise.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Sunrise.tex
index 756b981aec..46798d07f8 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Sunrise.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Sunrise.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-Sunrise,
-%D version=2009.03.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module Sunrise
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -26,10 +26,10 @@
\setuplayout [width=fit,
margin=0cm,
height=fit,
- header=2.75cm,
- footer=1.5cm,
+ header=2.75cm,
+ footer=1.5cm,
footerdistance=0.4cm,
- topspace=0cm,
+ topspace=0cm,
backspace=1cm,
location=singlesided]
@@ -41,6 +41,11 @@
[simpleslides:layer:slidetitle]
[x=10mm]
+%D Some strings are configurable.
+
+\setuplabeltext [\s!en] [of=of]
+\setuplabeltext [\s!de] [of=von]
+
%D These macros are used for placing figures/pictures:
\define\NormalHeight {\textheight}
@@ -57,9 +62,9 @@
%D We let \METAPOST\ calculate the background:
-%D Both horizontal and vertical group share this part of the background.
+%D Both horizontal and vertical group share this part of the background.
-\startuseMPgraphic{simpleslides:MP:common}
+\startuseMPgraphic{simpleslides:MP:common}
save a, b ;
numeric a; a=2.1cm ;
numeric b; b=1.5cm ;
@@ -97,7 +102,7 @@ fill p[2] withcolor \MPcolor{simpleslides:backgroundcolor} ;
fill p[3] withcolor \MPcolor{simpleslides:backgroundcolor} ;
fill p[4] withcolor \MPcolor{simpleslides:backgroundcolor} ;
fill p[5] withcolor \MPcolor{simpleslides:contrastcolor} ;
-\stopuseMPgraphic
+\stopuseMPgraphic
\startuniqueMPgraphic{simpleslides:MP:vertical}
StartPage ;
@@ -130,17 +135,17 @@ StopPage ;
%D We define these backgrounds as overlays:
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:horizontal]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:horizontal]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:vertical]
- [\useMPgraphic{simpleslides:MP:vertical}]
+\defineoverlay
+ [simpleslides:background:vertical]
+ [\useMPgraphic{simpleslides:MP:vertical}]
%D We define the footer
@@ -152,7 +157,7 @@ StopPage ;
\c!height=1cm,
\c!width=\textwidth]
{\simpleslidestitleparameter{title}
- \hfill \pagenumber\ of \lastpage}}]
+ \hfill \pagenumber\ \labeltext{of} \lastpage}}]
%D We want the title to placed in a framed box. We redefine all the keys of
%D \type{\setupTitle}, so that the module is easier to maintain.
@@ -174,7 +179,7 @@ StopPage ;
\c!title\c!align=,%\v!middle,
\c!author\c!style=,
\c!author\c!color=,
- \c!author\c!align=,%\v!middle,
+ \c!author\c!align=,%\v!middle,
\c!date\c!style=,
\c!date\c!color=,
\c!date\c!align=,%\v!middle,
@@ -193,7 +198,7 @@ StopPage ;
\c!color={simpleslides:contrastcolor}]
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}]
@@ -203,4 +208,3 @@ StopPage ;
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Swoosh.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Swoosh.tex
index 9ea77624a9..fc818b318a 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Swoosh.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-Swoosh.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-Swoosh,
-%D version=2009.03.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module -- Swoosh Style,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -24,9 +24,9 @@
\startsetups simpleslides:setup:randomizeyes
\startuseMPgraphic{simpleslides:MP:randomize}
if condition = 1:
- qw := qw shifted (-5pt - c*0.1*uniformdeviate(10), 0) ;
+ qw := qw shifted (-5pt - c*0.1*uniformdeviate(10), 0) ;
elseif condition = 2:
- qw := qw shifted (0, c*0.1*uniformdeviate(10)) ;
+ qw := qw shifted (0, c*0.1*uniformdeviate(10)) ;
fi ;
\stopuseMPgraphic
\stopsetups
@@ -35,9 +35,9 @@ fi ;
\setuplayout [simpleslides:layout:horizontal][header=3cm,footer=0cm]
\startuseMPgraphic{simpleslides:MP:counter}
if NOfPages > 1:
- numeric prog ; prog = PageNumber/NOfPages - 0.005 ;
+ numeric prog ; prog = RealPageNumber/NOfPages - 0.005 ;
fi ;
-if PageNumber > 1:
+if RealPageNumber > 1:
if condition = 1:
z11 = (prog * PaperWidth, PaperHeight) ;
z12 = (x11, 0) ;
@@ -64,8 +64,8 @@ pair circcenter ; circcenter = lrcorner Page shifted (-1cm, 1cm) ;
pair zt, zr, zb, zl ;
picture pic ;
b = 1.5cm ;
-if PageNumber > 1:
- theta = (PageNumber - 1)/(NOfPages - 1) ;
+if RealPageNumber > 1:
+ theta = (RealPageNumber - 1)/(NOfPages - 1) ;
p[4] = fullcircle scaled b rotated 90 ;
p[4] := p[4] shifted circcenter ;
fill p[4] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
@@ -89,7 +89,7 @@ if PageNumber > 1:
draw p[3] withcolor \MPcolor{simpleslides:backgroundcolor} ;
label(textext("\switchtobodyfont[10pt]\startcolor[simpleslides:backgroundcolor]\pagenumber\stopcolor"),center p[3]) ;
fi ;
-\stopuseMPgraphic
+\stopuseMPgraphic
\stopsetups
\doifsetupselse{simpleslides:setups:\moduleparameter{simpleslides}{counter}}
@@ -106,9 +106,9 @@ fi ;
\setuplayout [width=fit,
margin=0cm,
height=fit,
- header=3cm,
- footer=0.8cm,
- topspace=.6cm,
+ header=3cm,
+ footer=0.8cm,
+ topspace=.6cm,
backspace=1cm,
location=singlesided]
@@ -139,13 +139,13 @@ fi ;
\definecolor [simpleslides:contrastcolor] [r=.4,g=.6,b=.8]
\definecolor [simpleslides:altcontrastcolor] [r=.1,g=.1,b=.4]
\definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor]
-\definecolor [simpleslides:textcolor] [simpleslides:altcontrastcolor]
+\definecolor [simpleslides:textcolor] [simpleslides:altcontrastcolor]
\setupcolors[textcolor=simpleslides:textcolor]
%D We use \METAPOST\ to draw backgrounds.
-\startuseMPgraphic{simpleslides:MP:horizontal}
+\startuseMPgraphic{simpleslides:MP:horizontal}
StartPage ;
fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ;
numeric c ; c = PaperWidth * 0.4 ;
@@ -170,20 +170,20 @@ qw = z2 .. z3 .. z4 .. z5 .. z6 .. z7 ;
z9 = ql intersectionpoint qw ;
z10 = qr intersectionpoint qw ;
qw := qw cutbefore z9 cutafter z10 ;
-fill qr & qt & ql -- qw -- cycle withcolor \MPcolor{simpleslides:contrastcolor} ;
+fill qr & qt & ql -- qw -- cycle withcolor \MPcolor{simpleslides:contrastcolor} ;
draw qw withcolor white ;
\includeMPgraphic{simpleslides:MP:counter} ;
StopPage ;
-\stopuseMPgraphic
+\stopuseMPgraphic
-\startuseMPgraphic{simpleslides:MP:vertical}
+\startuseMPgraphic{simpleslides:MP:vertical}
StartPage ;
fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ;
numeric c ; c = PaperHeight * 0.4 ;
numeric d ; d = 2.2cm ;
numeric e ; e = PaperHeight / 46.9 ;
if NOfPages > 1:
- numeric prog ; prog = PageNumber/NOfPages - 0.005 ;
+ numeric prog ; prog = RealPageNumber/NOfPages - 0.005 ;
fi ;
numeric condition ; condition = 2 ;
save ql, qr, qt, qw, qc, qu, qb ; path ql, qr, qt, qw, qc, qu, qb ;
@@ -209,21 +209,21 @@ fill qw -- qr & ql & qu -- cycle withcolor \MPcolor{simpleslides:contrastcolor}
draw qw withcolor white ;
\includeMPgraphic{simpleslides:MP:counter} ;
StopPage ;
-\stopuseMPgraphic
+\stopuseMPgraphic
%D We define these backgrounds as overlays:
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:horizontal]
- [\useMPgraphic{simpleslides:MP:horizontal}]
+\defineoverlay
+ [simpleslides:background:horizontal]
+ [\useMPgraphic{simpleslides:MP:horizontal}]
-\defineoverlay
- [simpleslides:background:vertical]
- [\useMPgraphic{simpleslides:MP:vertical}]
+\defineoverlay
+ [simpleslides:background:vertical]
+ [\useMPgraphic{simpleslides:MP:vertical}]
\defineoverlay
[simpleslides:background:ornament]
@@ -258,7 +258,7 @@ StopPage ;
\c!title\c!align=\v!middle,
\c!author\c!style=,
\c!author\c!color=simpleslides:altcontrastcolor,
- \c!author\c!align=\v!middle,
+ \c!author\c!align=\v!middle,
\c!date\c!style=,
\c!date\c!color=simpleslides:altcontrastcolor,
\c!date\c!align=\v!middle,
@@ -269,22 +269,22 @@ StopPage ;
\c!after\c!author={\blank[2*line]},
\c!after\c!date=]
-%
+%
% %D We want the title to be of a specific height
-%
+%
% \setuphead[SlideTitle]
% [\c!after=,
% \c!alternative=\v!text,
% \c!color=white,
% \c!command=\doSlideTitle]
-%
+%
% \define[2]\doSlideTitle
% {\setlayer[simpleslides:layer:slidetitle]%
% {\getvalue{simpleslides:framed}[\c!width=\textwidth,\c!height=1.1cm,
% \c!align=\v!right]
-% {#1#2}}}
+% {#1#2}}}
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}]
\setupitemize[1][color=simpleslides:itemize:color]
@@ -293,4 +293,3 @@ StopPage ;
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-ThickStripes.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-ThickStripes.tex
index 52b86f7da2..cd1bb407ba 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-ThickStripes.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-ThickStripes.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-ThickStripes,
-%D version=2009.03.30
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module --- Thick Stripes style,
%D author=Aditya Mahajan and Thomas A. Schmitz,
@@ -28,10 +28,10 @@
rightmargin=0cm,
leftmargindistance=.9cm,
rightmargindistance=0pt,
- height=fit,
- header=2.5cm,
- footer=0cm,
- topspace=.4cm,
+ height=fit,
+ header=2.5cm,
+ footer=0cm,
+ topspace=.4cm,
backspace=2.9cm,
cutspace=2.8cm,
bottomspace=0cm,
@@ -98,7 +98,7 @@ fill p[3] withcolor \MPcolor{simpleslides:variantcolor} ;
pickup pencircle scaled 5pt ;
if NOfPages > 1:
- theta = (PageNumber - 1)/(NOfPages - 1) ;
+ theta = (RealPageNumber - 1)/(NOfPages - 1) ;
p[4] = unitcircle scaled b rotated 90 shifted (b + ((a-b)/2),(a-b)/2) ;
fill p[4] withcolor \MPcolor{simpleslides:backgroundcolor} ;
t[0] = center p[4] ;
@@ -117,11 +117,11 @@ StopPage ;
[simpleslides:background:ornament]
[\useMPgraphic{simpleslides:MP:ornament}]
-\defineoverlay
- [simpleslides:background:title]
- [\useMPgraphic{simpleslides:MP:ornament}]
+\defineoverlay
+ [simpleslides:background:title]
+ [\useMPgraphic{simpleslides:MP:ornament}]
-%D We want the title to placed in color.
+%D We want the title to placed in color.
\setupTitle[\c!headcolor={simpleslides:contrastcolor}]
@@ -134,7 +134,7 @@ StopPage ;
\c!height=2.5cm,
\c!color=simpleslides:backgroundcolor]
-%D The symbol for the first level of itemizations.
+%D The symbol for the first level of itemizations.
\definesymbol[1][\useMPgraphic{simpleslides:itemize:triangle}]
\setupitemize[1][inmargin][color=simpleslides:backgroundcolor]
@@ -143,4 +143,3 @@ StopPage ;
\stopmodule
\endinput
-
diff --git a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-default.tex b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-default.tex
index 117934ac02..93b5129930 100644
--- a/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-default.tex
+++ b/macros/context/contrib/context-simpleslides/tex/context/third/simpleslides/s-simpleslides-default.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=simpleslides-s-default,
-%D version=2012.02.12
+%D version=2022.07.13,
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module simpleslides --- Default style setup,
%D author=Thomas A. Schmitz \& Aditya Mahajan,
@@ -22,13 +22,13 @@
%D redefine some internal macros to achieve fancier effects.
-%D We start with the page layout. S6 has the ratio of a usual computer screen.
+%D We start with the page layout. S6 has the 3:4 ratio of a traditional computer screen.
\setuppapersize[S6][S6]
%D We do not want page numbers, but we sometimes want to use the page numbering
%D mechanism, so we make sure pages are counted, but the numbers are not
-%D displayed.
+%D displayed.
\setuppagenumbering[location=]
@@ -37,11 +37,11 @@
\setuplayout [width=middle,
margin=0.6cm,
- height=middle,
- header=0.15cm,
- footer=1.35cm,
+ height=middle,
+ header=0.15cm,
+ footer=1.35cm,
footerdistance=0.5cm,
- topspace=0.5cm,
+ topspace=0.5cm,
backspace=1cm,
location=singlesided]
@@ -71,13 +71,13 @@
\setupcolors[state=start]
%D And colored typesetting for \TEX\ code.
-
+% HR: outdated!
\definetype[typeTEX][option=color]
%D Presentations have relatively dense lines, we do not care about underfull
%D lines, but allow emergency stretch.
-\setuptolerance[\v!verytolerant,\v!stretch]
+\setuptolerance[\v!verytolerant,\v!stretch]
%D We use combinations for placing vertical pictures and text side by side, and
%D we want a distance of 3em between both.
@@ -190,7 +190,7 @@
simpleslides:layer:page}]
\stopsetups
-%D We also define some fall backs for presentation backgrounds.
+%D We also define some fallbacks for presentation backgrounds.
\startsetups simpleslides:background:default
\setups{simpleslides:background:horizontal}
@@ -205,7 +205,7 @@
\message{I don't know the name of the background you have provided.}
\setups{simpleslides:background:horizontal}
\stopsetups
-
+
%D Now we move on to specific components of the presentation. The first thing in
%D any presentation is the title page, so we start with that. We define a macro
%D that stores values for the title, author and date of the presentation. These
@@ -267,7 +267,7 @@
%D This parameter can be accessed inside the module as
%D \type{\simpleslidestitleparameter{institute}}, and the module writer
%D can redefine \type{\placeTitle} to display the institute at the appropriate
-%D place.
+%D place.
%D Now we setup some default values for the title page. Other modules will
@@ -302,7 +302,7 @@
%D \tex{SlideTitle}: well, the name says it all. The
%D argument is typeset as the title, but the implementation and the result
%D (alignment, size, distance to text, color etc.) vary from module to module,
-%D so this macro is defined in each of the submodules.
+%D so this macro is defined in each of the submodules.
\definenamespace
[SlideTitle]
@@ -385,8 +385,8 @@
%D order to provide a cleaner user interface and to make the code easier to
%D maintain. We now have just one macro, \tex{IncludePicture}, which
%D automatically inserts page breaks and adjusts the background and margins, if
-%D necessary. This macro takes four arguments:
-%D \setup{IncludePicture}
+%D necessary. This macro takes four arguments:
+%D \setup{IncludePicture}
%D The first argument decides whether the picture will be place in a horizontal
%D or vertical arrangement; the second argument is the filename of the picture
%D you want to include; the third argument does some setup, and the fourth
@@ -441,7 +441,7 @@
\newconditional\simpleslidesGrid \setfalse\simpleslidesGrid
\newconditional\simpleslidesSubGrid \setfalse\simpleslidesSubGrid
-\chardef\simpleslidesHighlightAlternative\zerocount %0=none, 1=circle,
+\chardef\simpleslidesHighlightAlternative\zerocount %0=none, 1=circle,
%2=arrow, 3=focus
\chardef\simpleslidesShadow\zerocount %0=no, 1=topleft, 2=topright,
%3=bottomright, 4=bottomleft
@@ -451,7 +451,7 @@
\def\doIncludePicture[#1][#2][#3]#4% dir graphic options text
- {\begingroup % Else the settings of \setupPicture are global
+ {\begingroup % Else the settings of \setupPicture are global
\setupPicture[#3]%
\processaction
[\simpleslidesPictureParameter{highlight}]
@@ -505,7 +505,7 @@
\v!default=>{\doIncludePictureHorizontal[#2]{#4}},
\v!unknown=>{\doIncludePictureHorizontal[#2]{#4}}%
\message{Keywords for positioning pictures are
- "horizontal" or "vertical."
+ "horizontal" or "vertical."
Please specify one of them!}]
\endgroup}
@@ -516,13 +516,13 @@
%D the available space. Small pictures will be enlarged, big pictures will be
%D fit. This code was suggested by Wolfgang Schuster on the mailing list.
-\def\setPictureDimensionsTo#1#2#3% graphic height width
+\def\setPictureDimensionsTo#1#2#3% graphic height width
{\doifelsenothing{\simpleslidesPictureParameter\c!width}
{\doifelsenothing{\simpleslidesPictureParameter\c!height}
{\setbox\scratchbox\hbox{\externalfigure[#1]
[\c!page=\simpleslidesPictureParameter\c!page]}
% Courtsey Wolfgang Schuster
- \ifdim\dimexpr#3*100/\wd\scratchbox\relax <
+ \ifdim\dimexpr#3*100/\wd\scratchbox\relax <
\dimexpr#2*100/\ht\scratchbox\relax
%
\setvalue{simpleslides:picture:width}{#3}%
@@ -536,7 +536,7 @@
{\setvalue{simpleslides:picture:width}{\simpleslidesPictureParameter\c!width}
\setvalue{simpleslides:picture:height}{}}}% not \simpleslidesPictureParameter\c!height
-%D This macro places the picture centered both vertically and horizontally.
+%D This macro places the picture centered both vertically and horizontally.
\def\doplacePictureFrame[#1]#2%
{\framed[\c!frame=\v!off,
@@ -612,11 +612,11 @@
\c!width=\paperwidth,
\c!page=\simpleslidesPictureParameter\c!page]}%
\page}% Otherwise last page is not correct in \MKII.
-
+
%D Now, we define the main \METAPOST\ graphic to highlight the picture. It first
%D checks if the user has asked for a grid, and if so, draws a grid and a
%D subgrid. Then it checks which alternative (arrow, circle, focus) is requested
-%D and draws that. Notice that we have intermixed \TEX\ and \METAPOST,
+%D and draws that. Notice that we have intermixed \TEX\ and \METAPOST,
%D exploiting the power of the MP-TEX interaction provided by \CONTEXT.
\startuseMPgraphic{simpleslides:MP:highlight}
@@ -647,25 +647,25 @@
for i = 0 upto 10 :
- draw xaxis shifted (i/10*OverlayWidth, 0)
- withpen pencircle scaled (OverlayWidth/250)
+ draw xaxis shifted (i/10*OverlayWidth, 0)
+ withpen pencircle scaled (OverlayWidth/250)
withcolor \MPcolor\simpleslidesGridColor ;
- draw yaxis shifted (0,i/10*OverlayHeight)
- withpen pencircle scaled (OverlayWidth/250)
+ draw yaxis shifted (0,i/10*OverlayHeight)
+ withpen pencircle scaled (OverlayWidth/250)
withcolor \MPcolor\simpleslidesGridColor ;
- label.bot(textext("\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]"
+ label.bot(textext("\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]"
& decimal i & "\stopcolor"),
(i/10*OverlayWidth, 0)) ;
- label.top(textext("\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]"
+ label.top(textext("\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]"
& decimal i & "\stopcolor"),
(i/10*OverlayWidth, OverlayHeight)) ;
- label.lft(textext("\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]"
+ label.lft(textext("\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]"
& decimal i & "\stopcolor"),
(0, i/10*OverlayHeight)) ;
- label.rt(textext("\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]"
+ label.rt(textext("\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]"
& decimal i & "\stopcolor"),
(OverlayWidth, i/10*OverlayHeight)) ;
endfor ;
@@ -675,7 +675,7 @@
%D The Metapost graphic draws a fine grid on the picture. The number of grid
%D lines is controlled by \type{steps} parameter of \type{\setupPicture}. Each
%D grid box of the 10x10 grid drawn above is subdivided into \type{steps} number
-%D of finer lines.
+%D of finer lines.
\startuseMPgraphic{simpleslides:MP:highlight:subgrid}
save xaxis, yaxis ; path xaxis, yaxis ;
@@ -688,13 +688,13 @@
for i = 0 step 10/stepSize until 100 :
if i mod 10 <> 0 :
- draw xaxis shifted (i/100*OverlayWidth, 0)
- withpen pencircle scaled (OverlayWidth/500)
+ draw xaxis shifted (i/100*OverlayWidth, 0)
+ withpen pencircle scaled (OverlayWidth/500)
withcolor \MPcolor\simpleslidesGridColor ;
- draw yaxis shifted (0,i/100*OverlayHeight)
- withpen pencircle scaled (OverlayWidth/500)
+ draw yaxis shifted (0,i/100*OverlayHeight)
+ withpen pencircle scaled (OverlayWidth/500)
withcolor \MPcolor\simpleslidesGridColor ;
- fi
+ fi
endfor ;
setbounds currentpicture to OverlayBox ;
@@ -737,19 +737,19 @@
\startuseMPgraphic{simpleslides:MP:highligh:circle}
save p; path p;
- p := fullcircle xyscaled
- % The dimensions are divided by 5 rather than 10, since the scale
+ p := fullcircle xyscaled
+ % The dimensions are divided by 5 rather than 10, since the scale
% measures the radius, rather than the diameter.
(\simpleslidesCurrentXscale, \simpleslidesCurrentYscale)
- rotated (\simpleslidesPictureParameter\c!direction)
+ rotated (\simpleslidesPictureParameter\c!direction)
shifted
(\simpleslidesPictureParameter\c!x *OverlayWidth/10,
\simpleslidesPictureParameter\c!y *OverlayHeight/10) ;
\ifcase \simpleslidesShadow \else
-
+
save shadow_direction ; pair shadow_direction ;
- shadow_direction =\simpleslidesPictureParameter\c!rulethickness *
+ shadow_direction =\simpleslidesPictureParameter\c!rulethickness *
\ifcase \simpleslidesShadow \or
(-1,1) \or (1,1) \or (1,-1) \or (-1,-1) \fi ;
@@ -762,7 +762,7 @@
\includeMPgraphic{simpleslides:MP:highligh:shadow}
\fi
- draw p withcolor \MPcolor{\simpleslidesPictureParameter\c!color}
+ draw p withcolor \MPcolor{\simpleslidesPictureParameter\c!color}
withpen pencircle scaled (\simpleslidesPictureParameter\c!rulethickness);
\stopuseMPgraphic
@@ -785,9 +785,9 @@
\ifcase \simpleslidesShadow \else
save shadow_direction ; pair shadow_direction ;
- shadow_direction = 2*\simpleslidesPictureParameter\c!rulethickness *
+ shadow_direction = 2*\simpleslidesPictureParameter\c!rulethickness *
dir(%\simpleslidesPictureParameter{direction} +
- \ifcase \simpleslidesShadow \or
+ \ifcase \simpleslidesShadow \or
135 \or 45 \or -45 \or -135 \fi ) ;
save shadow_thickness ; numeric shadow_thickness ;
@@ -799,7 +799,7 @@
\fi
drawarrow p
- withcolor \MPcolor{\simpleslidesPictureParameter\c!color}
+ withcolor \MPcolor{\simpleslidesPictureParameter\c!color}
withpen pencircle scaled (2*\simpleslidesPictureParameter\c!rulethickness);
\stopuseMPgraphic
@@ -811,11 +811,11 @@
\startuseMPgraphic{simpleslides:MP:highligh:focus}
save p; path p;
- p := fullcircle xyscaled
- % The dimensions are divided by 5 rather than 10, since the scale
+ p := fullcircle xyscaled
+ % The dimensions are divided by 5 rather than 10, since the scale
% measures the radius, rather than the diameter.
(\simpleslidesCurrentXscale, \simpleslidesCurrentYscale)
- rotated (\simpleslidesPictureParameter\c!direction)
+ rotated (\simpleslidesPictureParameter\c!direction)
shifted
(\simpleslidesPictureParameter\c!x *OverlayWidth/10,
\simpleslidesPictureParameter\c!y *OverlayHeight/10) ;
@@ -839,25 +839,25 @@
\startuseMPgraphic{simpleslides:MP:highligh:shadow}
%% I hope there were a better way to do this.
for i = 1 upto 20 :
- shadow_draw p shifted shadow_direction
+ shadow_draw p shifted shadow_direction
withcolor transparent (1,
\simpleslidesPictureParameter{opacity}/10, % 0.1,
- \MPcolor{\simpleslidesPictureParameter{shadow\c!color}})
+ \MPcolor{\simpleslidesPictureParameter{shadow\c!color}})
withpen pencircle scaled (i*shadow_thickness/20) ;
- endfor
+ endfor
\stopuseMPgraphic
%D This is a small square which will be used for itemizations; it will be
-%D placed in the margin.
+%D placed in the margin.
\startuniqueMPgraphic{simpleslides:itemize:triangle}
- fill (0,0) -- (0,0.4cm) -- (0.6cm,0.2cm) -- cycle
+ fill (0,0) -- (0,0.4cm) -- (0.6cm,0.2cm) -- cycle
withcolor \MPcolor{simpleslides:itemize:color} ;
\stopuniqueMPgraphic
\startuniqueMPgraphic{simpleslides:itemize:square}
- fill unitsquare xyscaled(0.4cm,0.4cm)
+ fill unitsquare xyscaled(0.4cm,0.4cm)
withcolor \MPcolor{simpleslides:itemize:color} ;
\stopuniqueMPgraphic