In this work, we introduce the concept of
Neste trabalho, introduzimos o conceito de funções
To compile the LaTeX project and generate the PDF files in both English and Portuguese, follow the instructions below.
Ensure you have the necessary dependencies installed:
sudo apt install texlive-full
sudo apt install inkscape
Use the following latexmk command to compile the project:
latexmk -bibtex -pdf -pvc --shell-escape -interaction=nonstopmode -outdir=./pdf tex/main.tex
The translation between Portuguese and English is managed using custom LaTeX commands defined in the preamble:
\newcommand{\en}[1]{\ifen#1\fi}
\newcommand{\pt}[1]{\ifpt#1\fi}
\entrue
% \pttrue
\en{...}
: Encloses English text.\pt{...}
: Encloses Portuguese text.
- To compile the document in English, ensure \entrue is active and \pttrue is commented out.
- To compile in Portuguese, comment out \entrue and uncomment \pttrue.
To compare different versions of your compiled PDFs, we recommend using the diff-pdf tool. It allows you to visually inspect differences between two PDF files, which is especially useful after making translations or updates.
You can download diff-pdf from its GitHub repository.
diff-pdf --output-diff=diff.pdf old_version.pdf new_version.pdf
This command will generate a PDF showing the differences between the two versions, helping you ensure that translations and updates are correctly reflected.
- pdf/: Contains the compiled PDF files in both English and Portuguese.
- english.pdf: Compiled English version of the document.
- portuguese.pdf: Compiled Portuguese version of the document.
- tex/: Contains all LaTeX source files for the project.
- chapters/
- introduction.tex: Contains the introduction section.
- ch1.tex: Source file for Chapter 1.
- ch2.tex: Source file for Chapter 2.
- ch3.tex: Source file for Chapter 3.
- conclusion.tex: Contains the conclusion section.
- appendix.tex: Contains the appendix section of the document.
- data.tex
- figures/: LaTeX files that define the figures used in the document.
- main.tex: The main LaTeX file that orchestrates the compilation of the entire document by including all chapters, figures, and pages.
- pages/: Contains front matter and other page-specific
.tex
files.- abstract.tex: Contains the abstract section in English.
- acknowledgment.tex: Contains the acknowledgments section.
- dedicatory.tex: Contains the dedicatory section.
- first_cover.tex: Defines the first cover page of the document.
- notations.tex: Lists the notations used throughout the document.
- resumo.tex: Contains the resumo (summary) section in Portuguese.
- second_cover.tex: Defines the second cover page of the document.
- refs.bib: Bibliography file containing all references cited in the document.
- chapters/