#basics

1 messages · Page 1 of 1 (latest)

lyric monolith
#

hey can i use latex for making drawing or science graphs or chem molecules like benzophenone or benzaldehyde cuz i am kinda confused pls help me

amber phoenix
#

Yes you can

#

For science graphs: TikZ/pgfplots

For chemistry: mhchem and chemfig

#

,ctan tikz

junior meadowBOT
#

PGF is a macro package for creating graphics. It is platform- and format-independent and works together with the most important TeX backend drivers, including pdfTeX and dvips. It comes with a user-friendly syntax layer called TikZ. Its usage is similar to pstricks and the standard picture environment. PGF works with plain (pdf-)TeX, (pdf-)LaTeX, and ConTeXt. Unlike pstricks, it can produce either PostScript or PDF output.
​ ​ ​ ​ ​ ​ Sources: /graphics/pgf/base
Documentation: README.md, Minimal introduction to TikZ (unofficial), PGF Manual
​ ​ ​ ​ ​ ​ Support: https://tug.org/mailman/listinfo/pgf-tikz
​ ​ Bug tracker: https://github.com/pgf-tikz/pgf/issues
​ ​ ​ Repository: https://github.com/pgf-tikz/pgf
​ ​ ​ ​ ​ ​ Version: 3.1.9a
​ Contained in: TeX Live as pgf, MiKTeX as pgf
Read more at CTAN page of the package.

#

The bundle provides three packages: The mhchem package provides commands for typesetting chemical molecular formulae and equations. The hpstatement package provides commands for the official hazard statements and precautionary statements (H and P statements) that are used to label chemicals. The rsphrase package provides commands for the official Risk and Safety (R and S) Phrases that are used to label chemicals. The package requires the expl3 bundle.
​ ​ ​ ​ ​ ​ Sources: /macros/latex/contrib/mhchem
Documentation: README, Package documentation
​ ​ ​ ​ ​ ​ Version: 2021-12-31
​ Contained in: TeX Live as mhchem, MiKTeX as mhchem
​ ​ ​ ​ ​ ​ ​ Topics: Safety notice, Chemistry
​ ​ ​ ​ ​ See also: r_und_s
Read more at CTAN page of the package.

#

The package provides the command \chemfig{<code>}, which draws molecules using the TikZ package. The <code> argument provides instructions for the drawing operation. While the diagrams produced are essentially 2-dimensional, the package supports many of the conventional notations for illustrating the 3-dimensional layout of a molecule. The package uses TikZ for its actual drawing operations.
​ ​ ​ ​ ​ ​ Sources: /macros/generic/chemfig
Documentation: README, Package documentation (English) , Package documentation (French)
​ ​ Bug tracker: https://framagit.org/unbonpetit/chemfig/issues
​ ​ ​ Repository: https://framagit.org/unbonpetit/chemfig/tree/master
​ ​ ​ ​ ​ ​ Version: 1.6c 2022-09-27
​ Contained in: TeX Live as chemfig, MiKTeX as chemfig
Read more at CTAN page of the package.

lyric monolith
#

@amber phoenixalso brother can i use these packages in texit or only overleaf ???

amber phoenix
#

Yes and No

#

You can also use them on your local editor (Vim, IntelliJ, VSCode etc) so long as you have TeXLive or equivalent installed.