Tikz at PF: \begin{tikzpicture} Help

  • Thread starter Thread starter bob012345
  • Start date Start date
  • Tags Tags
    Work
Click For Summary

Discussion Overview

The discussion revolves around the use of TikZ in the Physics Forums environment, specifically addressing issues related to rendering TikZ diagrams and the limitations of MathJax compared to LaTeX. Participants explore the challenges of using TikZ within the forum's formatting constraints.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Meta-discussion

Main Points Raised

  • One participant expresses difficulty in getting a specific TikZ command to work, asking for assistance.
  • Another participant notes that Physics Forums uses MathJax instead of LaTeX, which limits the availability of certain libraries and functionalities.
  • There is a mention of a previous site, MHB, which may have supported TikZ rendering, leading to questions about its features compared to PF.
  • Some participants share their personal workflows, indicating they use external tools like LaTeX editors or Overleaf to create TikZ diagrams and then share images instead of using direct TikZ code in the forum.
  • One participant suggests using Overleaf for compiling TikZ diagrams into PDFs, while another mentions using LyX for similar purposes.

Areas of Agreement / Disagreement

Participants generally agree on the limitations of TikZ usage in Physics Forums due to the reliance on MathJax, but there is no consensus on the specifics of the previous MHB site's capabilities or the best practices for using TikZ in the current forum.

Contextual Notes

Participants reference the differences in rendering capabilities between MathJax and LaTeX, and the potential need for external tools to effectively use TikZ. There is uncertainty regarding the exact features available on the MHB site prior to its merger.

bob012345
Gold Member
Messages
2,323
Reaction score
1,041
TL;DR
I cannot see any examples of tikz working.
I have this line;

\begin{tikzpicture} \mobiusstrip{1}{0.5} \end{tikzpicture}

What do I do to make it work? Thanks.
 
Physics news on Phys.org
bob012345 said:
TL;DR Summary: I cannot see any examples of tikz working.

I have this line;

\begin{tikzpicture} \mobiusstrip{1}{0.5} \end{tikzpicture}

What do I do to make it work? Thanks.
PF uses MathJax and not LaTeX. So not all libraries are available, and cannot be loaded either.
 
  • Like
Likes   Reactions: bob012345
Was it part of the MHB site that was merged?
 
IDK. It has been MathJax here since I joined. I have a tex editor running in parallel in case I want to write mathematical stuff that is more than a simple line. I rather copy, paste and finally adjust it than write it here. That means I have all environments that I want available and could copy tikz diagrams via screenshots.
 
bob012345 said:
Was it part of the MHB site that was merged?
I believe they had tikz, yes, and posts using it are most likely ones from there.
 
bob012345 said:
Was it part of the MHB site that was merged?
fresh_42 said:
IDK. It has been MathJax here since I joined.
MHB had an implementation of LaTeX that allowed tikz to be rendered in the browser:
I like Serena said:
MHB had a dedicated server that converted TikZ code to pictures on the fly.

We don't have that here in PF. You can, however, always render the tikz on your system and post a picture of the result.
 
bob012345 said:
TL;DR Summary: I cannot see any examples of tikz working.

I have this line;

\begin{tikzpicture} \mobiusstrip{1}{0.5} \end{tikzpicture}

What do I do to make it work? Thanks.
If all you want is a compiler to make a pdf then I'd suggest looking into Overleaf. Now, I've been using a LaTeX based word processor, LyX,, that also incorporates TikZ, though to save some time I usually use it to generate pdfs as it slows down the rendering time for the text.

-Dan
 
  • Like
Likes   Reactions: bob012345

Similar threads

Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • Poll Poll
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 0 ·
Replies
0
Views
6K
Replies
2
Views
2K