Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

doc.brown

  • 2 years ago

How do you show latex code in your post?

  • This Question is Closed
  1. doc.brown
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    A way to show the backslash, square-bracket.

  2. e.mccormick
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 3

    Use the accent that is on the same key as ~. `\(\LaTeX\)`

  3. doc.brown
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    ~\[\LaTeX\]'\[\LaTeX\]\`\[\LaTeX\]???

  4. e.mccormick
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 3

    One on each side of the \(\LaTeX\) code block. ``` `\(\LaTeX\)` ```

  5. doc.brown
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    `\[\LaTeX\]` HAZAAAH!

  6. e.mccormick
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 3

    The use of ``` on a single line above and below larger code blocks also does the code highlighting, and code blocks override \(\LaTeX\).

  7. doc.brown
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    `\[can =it+do\]\[multiple\times lines?\]` yup

  8. doc.brown
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    ``` \[can =it+do\] \[multiple\times lines?\] ``` I see, thanks a bunch!

  9. e.mccormick
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 3

    The code highlighting system was built for programming: ``` def function(int i): for x in range(i): print x+1 function(5) ``` But it works well for \(\LaTeX\) too. Just don't be surprised if you see the code highlight colors at times.

  10. doc.brown
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    2 3 4 5 6

  11. e.mccormick
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 3

    Nope. It would be: 1 2 3 4 5 Hehe. Range starts at 0 and goes 1 less than what is put in.

  12. doc.brown
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I've forgotten the rules of more programming languages then I can remember.

  13. e.mccormick
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 3

    I get that. I started with ROM based BASIC, learned some ASM, C, and Pascal (Not much), and don't use them at all. Know an OK amount of C++, Python, and Java. But try and do anything with Pascal and about all I remember is that statements end in ; and the program must have a defined begin and end.

  14. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy