Skip to main content

Mastering Mathematical Illustrations: GeoGebra, Inkscape, and LaTeX Workflow

Introduction to the Exercise

In this blog post, we explore the process of creating perfect mathematical figures for academic papers, starting with a practical exercise:

Soit $EFG$ un triangle tel que $EF=3$, $FG=7$ et $EG=9$. La bissectrice intérieure de l'angle $(\overrightarrow{FE}, \overrightarrow{FG})$ coupe la droite $(EG)$ en $B$, et soit $A$ la projection du point $G$ sur la droite $(EF)$ parallèlement à la droite $(FB)$.

  • Montrer que le triangle $FGA$ est un triangle isocèle en $F$.
  • Montrer que: $\overrightarrow{EF}=\frac{3}{10}\overrightarrow{EA}$.
  • En déduire que $\overrightarrow{EB}=\frac{3}{10}\overrightarrow{EG}$.
  • Justifier que $\frac{AG}{BF}=\frac{10}{3}$.

Our journey begins with a simple yet illustrative example: constructing a geometric diagram that elucidates the properties of triangles, specifically focusing on projections and bisectors within a plane. Utilizing GeoGebra, we generate the initial figure, demonstrating the application's capability to accurately represent mathematical concepts. This exercise not only serves as a foundation for our discussion but also exemplifies the seamless integration of software tools in enhancing the clarity and effectiveness of mathematical illustrations.

Creating the Initial Figure with GeoGebra

To explore the initial creation of our geometric figure, we utilized GeoGebra, an interactive geometry, algebra, statistics, and calculus application. The figure crafted for this exercise can be viewed directly through the following link, providing a visual foundation for our discussion on enhancing mathematical illustrations for academic purposes. View the figure on GeoGebra.

Exporting as SVG

After creating the initial figure in GeoGebra, exporting it as an SVG (Scalable Vector Graphics) file is a straightforward process. This step is crucial for maintaining the high quality and scalability After creating the initial figure in GeoGebra, exporting it as an SVG (Scalable Vector Graphics) file is a straightforward process. This step is crucial for maintaining the high quality and scalability of the diagram for publication purposes. SVG format ensures that the figure remains crisp and clear regardless of the size at which it is displayed, making it ideal for inclusion in academic papers. This format also allows for further editing and refinement in vector graphic editing tools like Inkscape, enabling precise adjustments and enhancements to the figure.

Troubleshooting Inkscape Integration

Step 1: Check Inkscape Installation

Make sure Inkscape is installed on your system. If it's not installed, download and install it from the official Inkscape website.

Step 2: Verify Inkscape Path

In windows, open the Command Prompt by pressing Win + S, typing cmd, and hitting Enter. Type inkscape --version and press Enter. This checks if Inkscape is in the PATH and what version is installed. If the Command Prompt returns an Inkscape version, it means Inkscape is in your PATH. If you get an error like 'inkscape' is not recognized as an internal or external command, you will need to add Inkscape to your PATH.

Step 3: Add Inkscape to PATH

Search for "Environment Variables" in the Windows search bar and select "Edit the system environment variables." In the System Properties window, click on "Environment Variables." In the "System variables" section, scroll down and find the "Path" variable, then select it and click "Edit." Click "New" and add the path to the Inkscape executable. It’s usually something like C:\Program Files\Inkscape\bin. Click "OK" to close all dialog boxes and apply the changes.

Enabling -shell-escape in TeXmaker

This guide walks you through the process of ensuring that the -shell-escape flag is enabled in TeXmaker, which is necessary for compiling LaTeX documents that include SVG images using the svg package.

Step 1: Open TeXmaker

Start by launching the TeXmaker application on your computer.

Step 2: Access TeXmaker Settings

Go to the "Options" menu and select "Configure TeXmaker" to open the settings dialog.

Step 3: Find the LaTeX Command Configuration

In the settings dialog, navigate to the "Commands" tab to find the compiler commands.

Step 4: Modify the Command

Append the -shell-escape option to your LaTeX compiler command. For pdfLaTeX, your command might look like:

pdflatex -synctex=1 -interaction=nonstopmode -shell-escape %.tex

Adjust accordingly if you are using a different compiler like LuaLaTeX.

Step 5: Save Changes

After modifying the command, click "OK" or "Apply" to save your changes.

Step 6: Test the Configuration

Compile a simple LaTeX document that includes an SVG image with the \includesvg command to verify that the setup is correct.

If you've followed these steps and your document compiles successfully with the SVG image included, then the -shell-escape flag is correctly enabled in your TeXmaker configuration.

Comments

Multitude of Heart Pattern

Buy on Amazon

Crimson Passion Vivid Red Heart

Buy on Amazon

The Formula of Us

Buy on Amazon

Abstract Love Heart

Buy on Amazon

The Formula of Us

Buy on Amazon

forget your voice

Buy on Amazon

Valentine's Verdure

Buy on Amazon

Cushion Closeness: Cherishing Our Bond

Buy on Amazon

Popular posts from this blog

A French template: serie of exercises by Latex

The screenshot above come from my french serie of exercises, by clicking on it you will be directed to the overleaf  document with all the details. In this article, I present you a French template that may help you with typing maths in french. the code source I work with is  this : %%%%%%%%%%%%%%%------Document class -------%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass [twocolumn,french]{article} %%%%%%%%%%%%%%%%%%------ packages --------%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage [top=2. 5cm , bottom=2. 5cm , left=0. 5cm , right=0. 5cm ]{geometry} \usepackage [T1]{fontenc} \usepackage [utf8]{inputenc} \usepackage {lmodern} \usepackage { ntheorem } \usepackage {babel} \usepackage {multicol} \usepackage { multirow } \usepackage {fancyhdr} \usepackage {amsfonts} \usepackage {amsmath} \usepackage {amssymb} \usepackage { latexsym } \usepackage {array} \usepackage {graphicx} %%%%%%%%%%%%%%-----NEW COMMAND-------%%%%%%%%%%%%%%%%%%%%%%%%%%%%

How to make a serie of exercises in two columns

For making a two-column document, we need to add an option in the document class in the input file : \documentclass[a4paper,10pt,twocolumn]{arabart} for exemple, the following code show how it looks like when the content is just blind text using the blindtext package: \documentclass [10pt,a4paper,twocolumn]{arabart} \usepackage [utf8]{inputenc}  \usepackage [LAE]{fontenc}  \usepackage [arabic]{babel}   \usepackage {blindtext} %%blind text package%%%%  \begin {document}   \blindtext  \blindtext  \blindtext  \blindtext  \blindtext  \end {document} And for result: You can see it from write latex also : Finally, we propose a typical serie in two column in write latex:

A typical Arabic exam of high school's mathematics written by LaTeX

The following pdf is a result of a .tex file, as you see it produce a pro document:  If you are interested in typing such a pdf file, you can copy the input file (code source) from   here at Write Latex

Colored Arabic Document

             In Order to create a colored document, I needed the package  tcolorbox giving the huge possibilities that it contain like we are going to explain in this article. However, it doesn't work with the arabart   document class (which by the way I used to make this previous documents :   A LANDSCAPE two columns pages of exercices ,  How to make a serie of exercices in two columns ,  A typical Arabic exam of high school's mathematics  ).          So I moved to using the package  polyglossia where compilation must be done with XeLaTeX . The tcolorbox package (2012) originates from the first edition of the book «LATEX – Einführung in das Textsatzsystem » in about 2006 writing by Dr. Thomas F. Sturm, it provides an environment for colored and framed text boxes with a heading line. As for Polyglossia, it is a package for facilitating multilingual typesetting with  XeLaTeX . Let's start with an exemple : the source code below is for a simple bo

A LANDSCAPE two columns pages of exercises

For making a two-column document, we need to add an option in the document class in the input file \documentclass [ 14pt ,a4paper,twocolumn, landscape ]{ arabart } I propose the following code that generate the document showed in the picture above: \documentclass [ 14pt ,a4paper,twocolumn,landscape]{ arabart } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%% importants packages %%%%%%%%%%%%%%%%%%%%%% \usepackage [top=0. 5cm , bottom=1. 5cm , left= 1cm , right= 1cm ]{geometry} \usepackage [utf8]{inputenc} \usepackage [ LAE ]{fontenc} \usepackage [ arabic ]{babel} \usepackage {multicol} \usepackage { multirow } \usepackage {tabularx} \usepackage {amssymb} \usepackage {array} \usepackage {graphicx} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%% new command %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand { \dis }{ \displaystyle } \mathchardef\times="2202 \newcommand { \C }{ \mathbb {C}}

arabic in Latex, is that possible?

   How to create an Arabic paper with the equations in the usual Latin in Latex?? This question is usually asked by people who need to write a scientific document in the Arabic language, specially scientific students or teachers who needs to make their reports, series or exams.    Many solutions are avalaible, the most used is the one using Arabtex package. It uses a transliteration system so that you may  typeset Arabic using latin letters, but it take a lot of time for the user to be familiar with the transiliteration. the following Latex code use the Arabtex package:( or you can visualise it at write LaTeX   here ) \documentclass [12pt]{article} \usepackage {arabtex} \begin {document} \setarab % choose the language specific conventions \vocalize % switch diacritics for short vowels on \transtrue % additionally switch on the transliteration \arabtrue % print arabic text ... is on by default anyway \centerline {\RL{^gu.hA wa-.himAruhu}} \begin {RLtext} '

Arabic colored box with a graphic side by side

                      To make an exercise inside a box with a graphic aside, after looking for a solution I found that I can put two minipages separated by a \hfill which fit the box entirely..let's break it down: The following  source code is for the exercise body : %--------document class \documentclass {article} %--------packages \usepackage {amsfonts,amssymb, enumitem } %--------polyglossia package \usepackage { polyglossia } \setdefaultlanguage [ calendar = gregorian , numerals = maghrib ]{ arabic } \newfontfamily\arabicfont [Script= Arabic , Scale=1]{ Amiri } %--------new commands \newcommand { \R }{ \mathbb {R}} \begin {document} لتكن $f$ و $g$ الدالتين المعرفتين على $\R$ بمنحنيهما $(C_f)$ و $(C_g)$ و $A$ نقطة زوج احداثياتها هو $(\frac{3}{2};\frac{1}{2})$ . ( انظر الشكل ) \begin {enumerate}[label={ \arabic* )}] \item\begin {enumerate} \item [(a] حدد جدول تغيرات الدالة $f$ على المجال $[-4;3]$ \ite

Produce your first Arabic document with Latex!

The first line of the input file should normally be like: \documentclass[a4paper,12pt]{article} We can change the commend article with letter or book, but here we will employ arabart: \documentclass[a4paper,12pt]{arabart} If one merly wishes to type in ordinary text, without complicated mathematical formulae or special effects, then one merly can use the command article and type it in as it is. However, arabart has to be applied to avoid errors when Arabic characters are mixed with the Latin ones.  Here is an exemple of a typical Arab Latex input file with the pdf result: As you can  see, this is an exercice of mathematic writed in arabic with formulae in the usual Latin: \documentclass [11pt,a4paper]{ arabart } \usepackage [utf8]{inputenc} \usepackage [ LAE ]{fontenc} \usepackage [ arabic ]{babel} \begin {document} تمرين \\ نعتبر الدالة العددية $f$ للمتغير الحقيقي $x$ المعرفة ب: $ f(x)=\displaystyle\frac{-x^2-x+6}{x^2+2x-8}$ \\ $1$ )

Video : How to get graphic's code from Geogebra to Latex