LaTeX Program or platform for figures and diagrams

Click For Summary
SUMMARY

This discussion focuses on tools and platforms for creating diagrams and figures in LaTeX, particularly for physics applications. Key recommendations include GeoGebra, which supports LaTeX and allows for dynamic geometry constructions, and TikZ, with front ends like Qtikz and Ktikz for Linux users. Inkscape is also highlighted for exporting images to PNG for inclusion in LaTeX documents. Additional resources mentioned include the SVG package for integrating SVG graphics into LaTeX and Mathpix for capturing mathematical expressions.

PREREQUISITES
  • Familiarity with LaTeX typesetting
  • Basic understanding of diagramming tools like Inkscape
  • Knowledge of TikZ for creating vector graphics in LaTeX
  • Experience with online platforms like GeoGebra for dynamic geometry
NEXT STEPS
  • Explore GeoGebra's features for creating and exporting diagrams
  • Learn to use TikZ for advanced diagram creation in LaTeX
  • Investigate the SVG package for integrating SVG graphics into LaTeX documents
  • Research Mathpix for capturing and converting mathematical expressions
USEFUL FOR

Physics educators, students, and researchers looking to enhance their LaTeX documents with high-quality diagrams and figures will benefit from this discussion.

Moara
Messages
43
Reaction score
5
When using latex for writing problems in physics, I find it difficult to make diagrams or figures (such as circuits, atwood machines, lenses, ...) so I wonder if anyone has some recommendations of programs or platforms that can make this "drawings" easy, possibly without the necessity of coding in latex.
 
  • Like
Likes Wrichik Basu
Physics news on Phys.org
Moara said:
When using latex for writing problems in physics, I find it difficult to make diagrams or figures (such as circuits, atwood machines, lenses, ...) so I wonder if anyone has some recommendations of programs or platforms that can make this "drawings" easy, possibly without the necessity of coding in latex.
If anyone can recommend platforms or programs for doing these type of figures and diagrams, even if it doesn't have anything related to latex, I would be gratefull to
 
  • Like
Likes sysprog
https://www.geogebra.org/?lang=en is available online or for download to run locally ##-## the name 'geogebra' is a portmanteau derived from 'geometry' and 'algebra'.
 
  • Like
Likes Moara
I like tikz, I found a couple of front ends for it Qtikz and Ktikz depending on your Linux flavor.
 
  • Like
Likes Moara
I usually use Inkscape and export to PNG to include in LaTeX.
 
  • Like
Likes DrClaude
I like (and use) https://www.geogebra.org/ ( a dynamic geometry platform ) [as @sysprog suggested]
because the constructions are created mathematically and programmatically, rather than relying on my art skills.

I use the Desktop version for development,
and I export and upload to geogebra.org to share it with others [without them having to install an application].

I take a PNG screenshot of simulation / visualization, then use \includegraphics in \LaTeX.
I don't use the other export options
https://wiki.geogebra.org/en/Export_to_LaTeX_(PGF,_PSTricks)_and_Asymptote

Folks have created files like
https://www.geogebra.org/m/JbAKa82Y (circuits)
https://www.geogebra.org/m/vUK7gGkN (mechanics)
for drawing custom diagrams.
Unfortunately, these above examples are just for visual appearance, not simulation like below
https://www.geogebra.org/m/jfhMWxak (wave superposition)
https://www.geogebra.org/m/M3CjvAms (lenses)

(Examples posted online can be downloaded and modified.)
Here's one of mine: https://www.geogebra.org/m/sjzxecxm (spherical coordinates)
 
  • Like
Likes DrClaude, Wrichik Basu and sysprog
@robphy, and @crashcat ##-## You might be interested in https://ctan.org/pkg/svg?lang=en:

svg – Include and extract SVG pictures in LATEX documents

This bundle contains the two packages svg and svg-extract.

The svg package is intended for the automated integration of SVG graphics into LATEX documents. Therefore the capabilities provided by Inkscape — or more precisely its command line tool — are used to export the text within an SVG graphic to a separate file, which is then rendered by LATEX. For this purpose the two commands \includesvg and \includeinkscape are provided which are very similar to the \includegraphics command of the graphicx package.
 
  • Like
Likes robphy
  • #10
Here's a little trick that I've found useful (it's maybe a little off-topic):

When you encounter a math formula in wikipedia that's rendered as an image (i.e. right-click doesn't offer a MathML or LaTeX option), you can (usually):

Get the Latex by editing the section (be careful to avoid accidentally saving the edit).

Get the svg by: right-click > Open image in new tab > click on the new tab > right-click > View page source (the page source is the svg text ##-## the title field therein will have the LaTeX expression).​
 
  • #12
robphy said:
@sysprog You might be interested in https://mathpix.com/ (too bad it's not browser based)
Thanks for the tip, @robphy ##\dots##

I don't like the 'software as a service/subscription' billing model, with unlimited snips for $4.95 per month, so I would probably not use it beyond the 50 free snips per month offered to non-student registrants.

At a glance, I really like the product feature set, and it does have what they call a "web editor".
 

Similar threads

  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K