Learn How to Create Diagonal Maps with Arrows in Latex | Step-by-Step Guide

  • LaTeX
  • Thread starter tgt
  • Start date
  • Tags
    Latex
In summary: You first open Latex and save it as 'mypaper.tex'? Then in that document do-------------------------------------diagrams.sty\begin{document}\include diagrams.sty\end{document}---------------------------------------and that's it? ktopNo, there is additional software that is needed in order to use diagrams.
  • #1
tgt
522
2
How to do diagonal maps labeled with a map in Latex? In other words how to do very long arrows that go diagonal, sideways, downwards etc.
 
Physics news on Phys.org
  • #4
tgt said:
The second link is useful but how to get the 'diagrams package' (so that \begin{diagram} can be used)? It doesn't seem to be on the website.

I have never used the package myself...
but following the description in that pdf,
it says...
"The diagrams package -
This is not part of the standard MikTex installation, but you can get it from the
author’s home page http://www.cs.man.ac.uk/~pt/diagrams/."
That link leads to
http://www.cs.man.ac.uk/~pt/diagrams/ which eventually redirects to http://www.monad.me.uk/diagrams/
which links to a page that says
"Unlike many other packages there is no "installation procedure" - you just copy the macros themselves to your TEX macros directory" with a link to http://www.monad.me.uk/diagrams/diagrams.sty .
Try that out and let us know if it works.
 
Last edited by a moderator:
  • #5
robphy said:
I have never used the package myself...
but following the description in that pdf,
it says...
"The diagrams package -
This is not part of the standard MikTex installation, but you can get it from the
author’s home page http://www.cs.man.ac.uk/~pt/diagrams/."
That link leads to
http://www.cs.man.ac.uk/~pt/diagrams/ which eventually redirects to http://www.monad.me.uk/diagrams/
which links to a page that says
"Unlike many other packages there is no "installation procedure" - you just copy the macros themselves to your TEX macros directory" with a link to http://www.monad.me.uk/diagrams/diagrams.sty .
Try that out and let us know if it works.


what are macros? Where is the TEX macros directory?
 
Last edited by a moderator:
  • #6
Macros are useful user-defined abbreviations of complicated commands.
Many are conveniently wrapped into style files or packages.

Style files can be used by placing the file in the same directory as the .tex source.
For a more centralized location, there is probably a directory in your tex distribution with lots of .sty files in it.

Some possibly useful links:
http://tex.loria.fr/english/packages.html
http://faq.tug.org/
 
  • #7
robphy said:
Macros are useful user-defined abbreviations of complicated commands.
Many are conveniently wrapped into style files or packages.

Style files can be used by placing the file in the same directory as the .tex source.
For a more centralized location, there is probably a directory in your tex distribution with lots of .sty files in it.

Some possibly useful links:
http://tex.loria.fr/english/packages.html
http://faq.tug.org/

Are you able to give some sort of algorithm for what to do? i.e open what file? Where to locate that file. copy what into where? etc.
 
  • #8
Compose mypaper.tex (with features based on diagrams.sty.. as described in the documentation).
In the same directory, place diagrams.sty.
latex mypaper
etc...
 
  • #9
robphy said:
Compose mypaper.tex (with features based on diagrams.sty.. as described in the documentation).
In the same directory, place diagrams.sty.
latex mypaper
etc...

I apologise for being so mediocre at computing.

So first open Latex and save it as 'mypaper.tex'? Then in that document do

-------------------------------------
diagrams.sty

\begin{document}



\end{document}
---------------------------------------

and that's it?

then what? Is anything installed at all or downloaded?
 

1. How do I create diagonal maps with arrows in LaTeX?

To create diagonal maps with arrows in LaTeX, you will need to use the tikz-cd package. This package allows you to create diagrams and commutative diagrams in LaTeX. You can use the \begin{tikzcd} and \end{tikzcd} commands to create your diagram, and then use the \arrow command to add arrows between elements.

2. Can I customize the appearance of the arrows in my diagonal map?

Yes, you can customize the appearance of the arrows in your diagonal map using various tikz-cd options. For example, you can change the color, size, style, and direction of the arrows by adding options after the \arrow command. You can also add labels to the arrows using the \arrow["label"] command.

3. How can I add labels to the elements in my diagonal map?

You can add labels to the elements in your diagonal map by using the \arrow command with the option ["label"]. This will add a label above the arrow. You can also use the \arrow["label"; direction] command to add a label to a specific direction of the arrow. Additionally, you can use the \mathop{} command to add labels to the elements themselves.

4. Is there a way to resize the entire diagonal map?

Yes, you can resize the entire diagonal map by using the scale option after the \begin{tikzcd} command. For example, you can use \begin{tikzcd}[scale=1.5] to make the diagram 1.5 times larger. You can also use the \resizebox command to resize the diagram to a specific width or height.

5. Can I add multiple diagonal maps in one LaTeX document?

Yes, you can add multiple diagonal maps in one LaTeX document by using the \begin{tikzcd} and \end{tikzcd} commands for each diagram. You can also use the & symbol to align multiple diagrams horizontally. Additionally, you can use the subcaption package to add captions and labels to each individual diagram.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
6K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
18
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
935
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
13
Views
4K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
6K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
264
  • MATLAB, Maple, Mathematica, LaTeX
Replies
9
Views
3K
Back
Top