%% bldelem1.txt %% Created by Laurence D. Finston (LDF) Tue May 29 13:05:57 CEST 2012 %% $Id: bldelem1.txt,v 1.18 2022/12/16 14:05:00 lfinsto1 Exp $ %% * (1) Copyright and License. %%%% This file is part of GNU 3DLDF, a package for three-dimensional drawing. %%%% Copyright (C) 2012, 2013, 2014, %%%% 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 The Free Software Foundation, Inc. %%%% GNU 3DLDF 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 3 of the License, or %%%% (at your option) any later version. %%%% GNU 3DLDF 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 GNU 3DLDF; if not, write to the Free Software %%%% Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA %%%% GNU 3DLDF is a GNU package. %%%% It is part of the GNU Project of the %%%% Free Software Foundation %%%% and is published under the GNU General Public License. %%%% See the website http://www.gnu.org %%%% for more information. %%%% GNU 3DLDF is available for downloading from %%%% http://www.gnu.org/software/3dldf/LDF.html. %%%% Please send bug reports to Laurence.Finston@gmx.de. %%%% The mailing list help-3dldf@gnu.org is available for people to %%%% ask other users for help. %%%% The mailing list info-3dldf@gnu.org is for the maintainer of %%%% GNU 3DLDF to send announcements to users. %%%% To subscribe to these mailing lists, send an %%%% email with ``subscribe '' as the subject. %%%% The author can be contacted at: %%%% Laurence D. Finston %%%% c/o Free Software Foundation, Inc. %%%% 51 Franklin St, Fifth Floor %%%% Boston, MA 02110-1301 %%%% USA %%%% Laurence.Finston@gmx.de %% * (1) \input eplain \input epsf \nopagenumbers %% * (1) %% Copied from `rotate.tex'. Not sure where it comes from, but it's certainly %% Free Software. LDF 2012.06.15. % % These macros allow you to rotate or flip a \TeX\ box. Very useful for % sideways tables or upsidedown answers. % % To use, create a box containing the information you want to rotate. % (An hbox or vbox will do.) Now call \rotr\boxnum to rotate the % material and create a new box with the appropriate (flipped) dimensions. % \rotr rotates right, \rotl rotates left, \rotu turns upside down, and % \rotf flips. These boxes may contain other rotated boxes. % \newdimen\rotdimen \def\vspec#1{\special{ps:#1}}% passes #1 verbatim to the output \def\rotstart#1{\vspec{gsave currentpoint currentpoint translate #1 neg exch neg exch translate}}% #1 can be any origin-fixing transformation \def\rotfinish{\vspec{currentpoint grestore moveto}}% gets back in synch % % First, the rotation right. The reference point of the rotated box % is the lower right corner of the original box. % \def\rotr#1{\rotdimen=\ht#1\advance\rotdimen by\dp#1% \hbox to\rotdimen{\hskip\ht#1\vbox to\wd#1{\rotstart{90 rotate}% \box#1\vss}\hss}\rotfinish} % % Next, the rotation left. The reference point of the rotated box % is the upper left corner of the original box. % \def\rotl#1{\rotdimen=\ht#1\advance\rotdimen by\dp#1% \hbox to\rotdimen{\vbox to\wd#1{\vskip\wd#1\rotstart{270 rotate}% \box#1\vss}\hss}\rotfinish}% % % Upside down is simple. The reference point of the rotated box % is the upper right corner of the original box. (The box's height % should be the current font's xheight, \fontdimen5\font, % if you want that xheight to be at the baseline after rotation.) % \def\rotu#1{\rotdimen=\ht#1\advance\rotdimen by\dp#1% \hbox to\wd#1{\hskip\wd#1\vbox to\rotdimen{\vskip\rotdimen \rotstart{-1 dup scale}\box#1\vss}\hss}\rotfinish}% % % And flipped end for end is pretty ysae too. We retain the baseline. % \def\rotf#1{\hbox to\wd#1{\hskip\wd#1\rotstart{-1 1 scale}% \box#1\hss}\rotfinish}% %% * (1) %% !! START HERE: LDF 2012.06.18. Add code for generating output in Letter %% format (8.5 x 11in) in Makefile.am. Also, change Makefile in %% [...]/web/SRC_CODE/. Change models.html. Fix the formatting. \pageno=1 \def\DINAFOUR{DINAFOURPORTRAIT} \def\LETTER{LETTER} \ifx\FMT\DINAFOUR \message{Format is defined, DIN A4} \input fmtdina4.txt \else\ifx\FMT\LETTER \message{Format is defined, LETTER} \input fmt8511.txt \else \message{Format is not defined. Defining as A4 Portrait} \special{papersize=210mm, 297mm} \hsize=210mm \vsize=297mm \fi\fi %% Saved for reference. LDF 2012.06.18. %% Uncomment for A4 portrait %% \special{papersize=210mm, 297mm} %% \hsize=210mm %% \vsize=