mirror of
https://github.com/flynx/photobook.git
synced 2025-10-28 09:50:09 +00:00
added \ChangeLayout{<layoutmode>} macro/shorthand.
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
60f6fe4a72
commit
59196d54e6
@ -23,10 +23,7 @@
|
||||
%
|
||||
% This can be usefull when having a single setup file for multiple book
|
||||
% elemnts like page blocks, covers, endpapers and dust jackets...
|
||||
\def\layoutmode{cover}
|
||||
|
||||
\ReInitPages
|
||||
|
||||
\ChangeLayout{cover}
|
||||
|
||||
|
||||
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
@ -76,7 +76,7 @@
|
||||
|
||||
%%% NOTE: \def\<module-name>@[A-Z]+ macros will be visible to both the
|
||||
%%% code and the generated docs...
|
||||
\edef\photobook@FILEVERSION{v0.1.10}
|
||||
\edef\photobook@FILEVERSION{v0.1.11}
|
||||
\edef\photobook@FILEDATE{2023-03-11}
|
||||
|
||||
|
||||
@ -1156,6 +1156,19 @@
|
||||
\InitPages%
|
||||
\ResetFoldMarks}
|
||||
|
||||
%% \DescribeMacro{\ChangeLayout}
|
||||
%
|
||||
%% Change document layout.
|
||||
%
|
||||
%% >> \ChangeLayout{<layoutmode>}
|
||||
%
|
||||
%% This is a shorthand for |\def\layoutmode{<layoutmode>}| and then
|
||||
%% |\ReInitPages|, and as this is changing any other parameters that may
|
||||
%% affect the layout, this should be done last.
|
||||
%%
|
||||
\newcommand\ChangeLayout[1]{%
|
||||
\def\layoutmode{#1}%
|
||||
\ReInitPages}
|
||||
|
||||
|
||||
%----------------------------------------------------------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user