Coolest LaTeX Tricks?
^.^
Macros \(\boxed{}\newcommand\openstudy{\Huge\cal \color{#44ABCD}O \color{#55ABCD}p \color{#66ABCD}e \color{#77ABCD}n \color{#88ABCD}S \color{#99ABCD}t \color{#AAABCD}u \color{#BBABCD}d \color{#CCABCD}y \color{#DDABCD}!}%COLORS\) \[\LARGE\openstudy^{\openstudy^{\openstudy^{\openstudy^{\openstudy}}}}\]
cool!
When writing a \(\LaTeX\) document it saves a lot of typing by defining some macros \[\newcommand \intl [4] { \int\limits_{#1}^{#2}{#3}{\,\mathrm d #4} } % integral with limits \intl01{f(x)}x+\intl12{f(x)}x=\intl02{f(x)}x\]
Negative space. It allows you to back up, overtype. This makes the shadow text able to be done. It also makes for changing spacing in things to do kerning adjustments. See, in \(\LaTeX\) for PDF documents it does kerning automatically. But with the MathJax system, it does not do this sort of thing. So sometimes you need to use negative space to correct problems. The \rlap negative space kills all of it for a line or box and resets it to the right. \llap does it and sets it left, which is not practical on OpenStudy, and \clap does centing but does not work with MathJax. \(\Huge \rlap{\color{red}{\,\textbf{Shadow}}} \color{#333333}{\textbf{Shadow}}\) Then there is \!, which does just a micro space removal. Lets take UnkleRhaukus' limits example and collapse some spaces. I will move the \(f(x)\) over by removing 3, 2, then 1 space. \[\newcommand \intl [4] { \int\limits_{#1}^{#2}{#3}{\,\mathrm d #4} } % integral with limits \intl01{f(x)}x+\intl12{f(x)}x=\intl02{f(x)}x\] Becomes: \[\newcommand \intl [4] { \int\limits_{#1}^{#2}{#3}{\,\mathrm d #4} } % integral with limits \intl01{\!\!\!f(x)}x+\intl12{\!\!f(x)}x=\intl02{\!f(x)}x\] And finally, there is horizontal space, \hspace, which can be used to do a custom back with the standard spacing things. em, px, in, mm, pt and more, all here for a reference: http://en.wikibooks.org/wiki/LaTeX/Lengths \(test\quad test\) \(test\quad \hspace{-2px} test\) \(test\quad \hspace{-2mm} test\) \(test\quad \hspace{-2cm} test\) \(test\quad \hspace{-2em} test\) \(test\quad \hspace{-2pt} test\) \(test\quad \hspace{-2ex} test\) Negative space is a super cool \(\LaTeX\) trick!
how to you make tht latex thing?
cool
\[L^AT _{E}X\] got it
me?
\(\LaTeX\)
There is a little history behind the logo command. \(\TeX\) made their logo like that intentionally for showing off the typesetting. Then there became a need to make the language more accessible, and \(\LaTeX\) was made. It extends the original language in ways that make it more useable. Well, they just added \( L\!\small ^A\) in front of the original logo to show that they were just extending \(\TeX\) and not making something new.
Oh, and if you right click the \(L\!\small ^A\) you can see how I used a little creative spacing and sizing to emulate the start of the logo. Just go to Show Math As and select TeX Commands and you can see what has been typed.
Now, there is also the use of \(\LaTeX\) to do really strange things. We have had smile wars and more. \(\hspace{-4em}\Huge\widehat {\bbox{\quad \quad \quad}}\) Arrow points at one of the people that starts these things.
That's so cool! and smile wars?
btw how do you indent when ur writing latex? Sometimes it goes off the page
Yah, the MathJax system does not automatically wrap lines. So there are flaws with using it for things larget than formulas or a few words. http://openstudy.com/study#/updates/51baa6d8e4b0012787fad7a5 http://openstudy.com/study#/updates/51eeea9de4b0c8f6bc3413cb
So yes, I meant smile war quite literally. Hehe.
\(\color{fuchsia}{\bigstar}\)\(\color{fuchsia}{\bigstar}\) \(\huge\color{fuchsia}\smile\)
\[\text{secret writing}\color{grey}.\color{lightgrey}.% invisible comments, 15^2 = 225\]
\(\cal\huge\color{salmon}{I'm~still~learning~the~cool~stuff.}\)
\(\Huge\color{blue}{IKR!}\)
\(\color{white}{\text{Right click is your friend.}}\) That is all it takes.
\(\cal\huge\bf\color{olive}{It~is~pretty~easy}\)
If you select between "That is all it takes" and my name, you will learn something else.
\(\color{white}{Fools!~You~really~think~I'd~put~something~secret~here?~Well...~Sammi~Is~Awesome}\) Secreeettsss ^
\(\color{white}{Oh,~I~see.}\)
How do you make the shadow behind the words?
\( \Large\rlap{\color{red}{Hello!}}{\color{black}{\;Hello!}}\) like this
@anonymous_user like that ^^
-.\ No formula?
It is this just no spaces \ ( \Large\rlap{\color{red}{Hello!}}{\color{black}{\;Hello!}}\ )
@anonymous_user ^^ there you go
@Elsa213 you want to learn any thing
um sure
\( \huge\color{blue}{what~you~want~to~learn}\)
\(\rm \href{javascript:(function(){function c(){var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");e.setAttribute("href",f);e.setAttribute("class",l);document.body.appendChild(e)}function h(){var e=document.getElementsByClassName(l);for(var t=0;t<e.length;t++){document.body.removeChild(e[t])}}function p(){var e=document.createElement("div");e.setAttribute("class",a);document.body.appendChild(e);setTimeout(function(){document.body.removeChild(e)},100)}function d(e){return{height:e.offsetHeight,width:e.offsetWidth}}function v(i){var s=d(i);return s.height>e&&s.height<n&&s.width>t&&s.width<r}function m(e){var t=e;var n=0;while(!!t){n+=t.offsetTop;t=t.offsetParent}return n}function g(){var e=document.documentElement;if(!!window.innerWidth){return window.innerHeight}else if(e&&!isNaN(e.clientHeight)){return e.clientHeight}return 0}function y(){if(window.pageYOffset){return window.pageYOffset}return Math.max(document.documentElement.scrollTop,document.body.scrollTop)}function E(e){var t=m(e);return t>=w&&t<=b+w}function S(){var e=document.createElement("audio");e.setAttribute("class",l);e.src=i;e.loop=false;e.addEventListener("canplay",function(){setTimeout(function(){x(k)},500);setTimeout(function(){N();p();for(var e=0;e<O.length;e++){T(O[e])}},15500)},true);e.addEventListener("ended",function(){N();h()},true);e.innerHTML=" <p>If you are reading this, it is because your browser does not support the audio element. We recommend that you get a new browser.</p> <p>";document.body.appendChild(e);e.play()}function x(e){e.className+=" "+s+" "+o}function T(e){e.className+=" "+s+" "+u[Math.floor(Math.random()*u.length)]}function N(){var e=document.getElementsByClassName(s);var t=new RegExp("\\b"+s+"\\b");for(var n=0;n<e.length;){e[n].className=e[n].className.replace(t,"")}}var e=30;var t=30;var n=350;var r=350;var i="//s3.amazonaws.com/moovweb-marketing/playground/harlem-shake.mp3";var s="mw-harlem_shake_me";var o="im_first";var u=["im_drunk","im_baked","im_trippin","im_blown"];var a="mw-strobe_light";var f="//s3.amazonaws.com/moovweb-marketing/playground/harlem-shake-style.css";var l="mw_added_css";var b=g();var w=y();var C=document.getElementsByTagName("*");var k=null;for(var L=0;L<C.length;L++){var A=C[L];if(v(A)){if(E(A)){k=A;break}}}if(A===null){console.warn("Could not find a node of the right size. Please try a different page.");return}c();S();var O=[];for(var L=0;L<C.length;L++){var A=C[L];if(v(A)){O.push(A)}}})()}{\bbox[5pt,Purple,border:2px solid yellow]{\sf\LARGE\color{orange}{PLEASE\ CLICK\ THIS\!!!!!!}}}\)
creds to @ikram002p
for showing me
@dan815
clck that
wow cam!! How did you do that, thats awesome!!
i didnt xD
thatts aweesomeEE! i had no idea we can write functions with latex!!
-_- u need to learn more latex
I know!! I never took it seriously, what else can we do!
\(\bbox[1pt,#FF0000]{\bbox[1pt,#FF1700]{\bbox[1pt,#FF2E00]{\bbox[1pt,#FF4500]{\bbox[1pt,#FF5C00]{\bbox[1pt,#FF7300]{\bbox[1pt,#FF8A00]{\bbox[1pt,#FFA100]{\bbox[1pt,#FFB800]{\bbox[1pt,#FFCF00]{\bbox[1pt,#FFE600]{\bbox[1pt,#FFFD00]{\bbox[1pt,#FFff00]{\bbox[1pt,#E8ff00]{\bbox[1pt,#D1ff00]{\bbox[1pt,#BAff00]{\bbox[1pt,#A3ff00]{\bbox[1pt,#8Cff00]{\bbox[1pt,#75ff00]{\bbox[1pt,#5Eff00]{\bbox[1pt,#47ff00]{\bbox[1pt,#30ff00]{\bbox[1pt,#19ff00]{\bbox[1pt,#02ff00]{\bbox[1pt,#00ff00]{\bbox[1pt,#00ff17]{\bbox[1pt,#00ff2E]{\bbox[1pt,#00ff45]{\bbox[1pt,#00ff5C]{\bbox[1pt,#00ff73]{\bbox[1pt,#00ff8A]{\bbox[1pt,#00ffA1]{\bbox[1pt,#00ffB8]{\bbox[1pt,#00ffCF]{\bbox[1pt,#00ffE6]{\bbox[1pt,#00ffFD]{\bbox[1pt,#00ffff]{\bbox[1pt,#00FDff]{\bbox[1pt,#00E6ff]{\bbox[1pt,#00CFff]{\bbox[1pt,#00B8ff]{\bbox[1pt,#00A1ff]{\bbox[1pt,#008Aff]{\bbox[1pt,#0073ff]{\bbox[1pt,#005Cff]{\bbox[1pt,#0045ff]{\bbox[1pt,#002Eff]{\bbox[1pt,#0017ff]{\bbox[1pt,#0000ff]{\bbox[1pt,#0200ff]{\bbox[1pt,#1900ff]{\bbox[1pt,#3000ff]{\bbox[1pt,#4700ff]{\bbox[1pt,#5E00ff]{\bbox[1pt,#7500ff]{\bbox[1pt,#8C00ff]{\bbox[1pt,#A300ff]{\bbox[1pt,#BA00ff]{\bbox[1pt,#D100ff]{\bbox[1pt,#E800ff]{\bbox[1pt,#FF00ff]{\bbox[1pt,#FF00FD]{\bbox[1pt,#FF00E6]{\bbox[1pt,#FF00CF]{\bbox[1pt,#FF00B8]{\bbox[1pt,#FF00A1]{\Huge\mathbb{\color{white}{HI!\ :D}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}\)
lol thx for the medal
o.o i saw tht
hahaha
\(\large\frak\color{Orange}{\underline{\href{javascript:confirm('You have been issued a warning by Gabebro13. If you keep being so awesome, the world might explode! Please, keep pressing random buttons!')}{Click~Here!}}}\)
@camerondoherty try it out! ^
xD LOL
@Elsa213 give the button a try!
no
Why? Are you frightened???
Lol it does'nt hurt
Maybe.... this time I made it so it will.... O-O
@Elsa213
Join our real-time social learning platform and learn together with your friends!