Ask your own question, for FREE!
LaTeX Practicing! :) 8 Online
OpenStudy (doc.brown):

How do you show latex code in your post?

OpenStudy (doc.brown):

A way to show the backslash, square-bracket.

OpenStudy (e.mccormick):

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

OpenStudy (doc.brown):

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

OpenStudy (e.mccormick):

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

OpenStudy (doc.brown):

`\[\LaTeX\]` HAZAAAH!

OpenStudy (e.mccormick):

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

OpenStudy (doc.brown):

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

OpenStudy (doc.brown):

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

OpenStudy (e.mccormick):

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.

OpenStudy (doc.brown):

2 3 4 5 6

OpenStudy (e.mccormick):

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

OpenStudy (doc.brown):

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

OpenStudy (e.mccormick):

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.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!