Skip to content

Commit

Permalink
more content
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomtzlosa committed Dec 8, 2020
1 parent e8e5865 commit b1a862c
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 34 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.
77 changes: 43 additions & 34 deletions utils/imports.tex
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,10 @@

%% INDENTATION REVIEW
\newif\ifindentfirst
\newif\ifindentall

\indentfirstfalse
\indentallfalse

\def\indentspace{\hspace*{1em}}
\def\noindentspace{\hspace*{0em}}
Expand Down Expand Up @@ -368,44 +370,51 @@

\else

%% START NOT INDENT FIRST PARAGRAPH OTHER PARAGRAPHS INDENT
\ifindentall

\makeatletter
\def\@afterheading{%
\@nobreaktrue
\everypar{%
\if@nobreak
\@nobreakfalse
\clubpenalty \@M
\noindentspace%
\else
\clubpenalty \@M
\indentspace
\fi}}
\makeatother
\setlength{\parindent}{0em}

%% END NOT INDENT FIRST PARAGRAPH OTHER PARAGRAPHS INDENT

%% PATCH INDENT AFTER ENVIRONMENT LIST BASED
% https://tex.stackexchange.com/questions/112404/reliable-code-for-automatic-noindent-after-specific-environments
% https://tex.stackexchange.com/questions/23062/an-unexpected-value-of-clubpenalty
\setlength{\parindent}{1em}

\else

\makeatletter
\let\nearly@afterheading\@afterheading
\patchcmd\nearly@afterheading
{\@M} % original temporary setting for \clubpenalty replaced by ...
{\@clubpenalty\protect\indentspace} % ... or whichever value you deem right
{}{}

\newcommand*\IndentAfterEnv[1]{%
\AfterEndEnvironment{#1}{\par\@afterindentfalse\nearly@afterheading}}
\makeatother
%% START NOT INDENT FIRST PARAGRAPH OTHER PARAGRAPHS INDENT

\makeatletter
\def\@afterheading{%
\@nobreaktrue
\everypar{%
\if@nobreak
\@nobreakfalse
\clubpenalty \@M
\noindentspace%
\else
\clubpenalty \@M
\indentspace
\fi}}
\makeatother
\setlength{\parindent}{0em}

%% END NOT INDENT FIRST PARAGRAPH OTHER PARAGRAPHS INDENT

\IndentAfterEnv{itemize}
\IndentAfterEnv{enumerate}
%% PATCH INDENT AFTER ENVIRONMENT LIST BASED
% https://tex.stackexchange.com/questions/112404/reliable-code-for-automatic-noindent-after-specific-environments
% https://tex.stackexchange.com/questions/23062/an-unexpected-value-of-clubpenalty

\makeatletter
\let\nearly@afterheading\@afterheading
\patchcmd\nearly@afterheading
{\@M} % original temporary setting for \clubpenalty replaced by ...
{\@clubpenalty\protect\indentspace} % ... or whichever value you deem right
{}{}

%% END PATCH INDENT AFTER ENVIRONMENT LIST BASED
\newcommand*\IndentAfterEnv[1]{%
\AfterEndEnvironment{#1}{\par\@afterindentfalse\nearly@afterheading}}
\makeatother

\IndentAfterEnv{itemize}
\IndentAfterEnv{enumerate}

%% END PATCH INDENT AFTER ENVIRONMENT LIST BASED
\fi

\fi
%% END INDENTATION REVIEW
Expand Down

0 comments on commit b1a862c

Please sign in to comment.