Skip to content

Commit

Permalink
universal selection layout in code
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomtzlosa committed Jun 8, 2021
1 parent ee29d02 commit 7c104e8
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 0 deletions.
Binary file modified book-cover/universal/book_cover.dvi
Binary file not shown.
Binary file modified book-cover/universal/book_cover.pdf
Binary file not shown.
Binary file modified book_cover.pdf
Binary file not shown.
Binary file modified report-combine.pdf
Binary file not shown.
Binary file modified report.pdf
Binary file not shown.
5 changes: 5 additions & 0 deletions report.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

\input{utils/super_macro}

% Set wheter twoside enable of not (true or false), by default twoside
%\twosidelayout[true] % select twoside layout
%\twosidelayout[false] % select oneside layout
\twosidelayout % default twoside layout active

\checkforceprintable

\input{utils/imports}
Expand Down
20 changes: 20 additions & 0 deletions utils/imports.tex
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,26 @@
\usepackage{glossaries} % always load glossaries AFTER hyperref
\usepackage{ifplatform}

\iftwoside

\typeout{!!!}
\typeout{!!!!! SELECTED TWO-SIDE}
\typeout{!!!}

\makeatletter
\@twosidetrue
\makeatother
\else

\typeout{!!!}
\typeout{!!!!! SELECTED ONE-SIDE}
\typeout{!!!}

\makeatletter
\@twosidefalse
\makeatother
\fi

\newif\ifmultibib

% set true or false to view the list of publications
Expand Down
20 changes: 20 additions & 0 deletions utils/super_macro.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
\global\def\trueValue{true}
\global\def\falseValue{false}
\global\def\printabletext{true}
\global\def\printableimages{true}

Expand Down Expand Up @@ -35,6 +36,25 @@
\fi
}

\newif\iftwoside
\twosidetrue

\newcommand{\twosidelayout}[1][]{

\ignorespaces\lowercase{\def\tmp{#1}}\unskip

\ifx\tmp\empty
\twosidetrue
\else

\ifx\tmp\falseValue
\twosidefalse
\else
\twosidetrue
\fi
\fi
}

% set document title
\global\def\THETITLE{Report workbook}

Expand Down

0 comments on commit 7c104e8

Please sign in to comment.