Skip to content

Commit

Permalink
Notas: ajustes para a versão EPUB
Browse files Browse the repository at this point in the history
  • Loading branch information
phkonzen committed Feb 10, 2024
1 parent 9fff393 commit 05bd9d7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
8 changes: 5 additions & 3 deletions src/makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ html: main.tex
latexmlc main.tex \
--splitat=section -splitnaming=label \
--includestyles \
--css=../main.css \
--css="./fonts/cmun-serif.css" \
--format=html \
--javascript='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=MML_SVG' \
Expand All @@ -35,8 +34,11 @@ html: main.tex
########################################

epub: main.tex
cp ../config-book.knd config.knd
latexmlc main.tex --dest=main.epub --includestyles
cp ../notas.css .
latexmlc main.tex \
--dest=main.epub \
--includestyles \
--css=notas.css


########################################
Expand Down
6 changes: 6 additions & 0 deletions src/notas.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* parágrafos */
.ltx_para > .ltx_p:first-child {
text-indent: 0em;
margin-top: 1em;
margin-bottom: 1em;
}
16 changes: 7 additions & 9 deletions src/preambulo.tex
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
\usepackage[T1]{fontenc}
\usepackage[portuguese]{babel}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Bibliografia
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bibliographystyle{abbrv}
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % Bibliografia
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \bibliographystyle{abbrv}

%%%% copy and paste from PDF (correctly) %%%%
\usepackage{lmodern}
Expand All @@ -41,9 +41,7 @@
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % Parágrafos e indentação
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \usepackage{parskip}
\usepackage{indentfirst}
% \setlength{\parindent}{1em}
\usepackage[skip=1.5em, indent=0em]{parskip}

%%%% no blank pages between chapters %%%%
\let\cleardoublepage\clearpage
Expand Down Expand Up @@ -87,15 +85,15 @@
numbersep=5pt,
stepnumber=1,
firstnumber=1,
numberfirstline=true,
extendedchars=true,
inputencoding=utf8,
basicstyle=\small\ttfamily,
basicstyle=\ttfamily,
commentstyle=\ttfamily\itshape\color{gray},
stringstyle=\ttfamily,
showspaces=false,
showstringspaces=false,
showtabs=false,
resetmargins=true,
literate = % Support additional characters
{á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
{Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1
Expand Down
2 changes: 1 addition & 1 deletion src/preambulo_book.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%Este trabalho está licenciado sob a Licença Creative Commons Atribuição-CompartilhaIgual 3.0 Não Adaptada. Para ver uma cópia desta licença, visite https://creativecommons.org/licenses/by-sa/3.0/ ou envie uma carta para Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

% background grid
\usepackage[grid, gridBG=true, gridunit=pt, gridcolor=blue!10, subgridcolor=blue!5]{eso-pic}
\usepackage[grid, gridBG=true, gridunit=mm, gridcolor=blue!10, subgridcolor=blue!5]{eso-pic}

% allow page breaks in equation enviroments
\allowdisplaybreaks
Expand Down

0 comments on commit 05bd9d7

Please sign in to comment.