TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Begin LaTeX in minutes

263 pointsby PleaseHelpMeover 8 years ago

35 comments

1wdover 8 years ago
Just don&#x27;t try anything that isn&#x27;t in your typical math paper. There are thousands of LaTeX packages, because they are all broken if you use them in a slightly unexpected way, so (reminiscent of JavaScript) a new package is created to &quot;fix&quot; it.<p>Tables? Here you go. Oh, you wanted nested tables? For that you need to switch to an entirely different package. Oh, and that one doesn&#x27;t support splitting up tables over multiple pages. Maybe this new one can do it. But it doesn&#x27;t support that other package you use. Maybe try that one instead. Oh, in that one you can&#x27;t have ...<p>Or is that just me?
评论 #12830587 未加载
评论 #12830481 未加载
评论 #12830534 未加载
评论 #12831089 未加载
评论 #12830488 未加载
评论 #12832087 未加载
评论 #12842713 未加载
评论 #12830913 未加载
评论 #12830870 未加载
评论 #12831090 未加载
pwdisswordfishover 8 years ago
Most materials about LaTeX I tend to find on the web seem to be of the &#x27;programming by StackOverflow&#x27; variety, i.e. &#x27;copy this snippet of code, tweak it to your needs and compile&#x27;; they don&#x27;t teach you about what the code actually does, how it interacts with everything else, and there is no syntax specification apart from series of digressions like &#x27;oh, by the way, if you wish to achieve effect X, you can use option Y&#x27;. Unfortunately, even official documentation for LaTeX packages is often written that way (a major pleasant exception is the documentation for TikZ). In the short term, it may seem fine, but it inevitably comes back to bite the user later. The guide submitted here doesn&#x27;t seem particularly different.<p>For those wishing to learn some &#x27;theoretical&#x27; TeX, I can recommend <i>TeX by Topic</i>.[0] It mentions LaTeX macros only in passing, but even that amount was quite helpful to me.<p>[0] <a href="https:&#x2F;&#x2F;bitbucket.org&#x2F;VictorEijkhout&#x2F;tex-by-topic" rel="nofollow">https:&#x2F;&#x2F;bitbucket.org&#x2F;VictorEijkhout&#x2F;tex-by-topic</a>
评论 #12830619 未加载
评论 #12830361 未加载
pfootiover 8 years ago
The usual plug for sharelatex here. Check out sharelatex.com, it is amazing. Write LaTeX without having to install it, plus collaboration in the cloud. (I&#x27;m not affiliated, just a fan).<p>And in general, LaTeX is a super worthwhile language to learn. It may be a bit more complicated than markdown or its cousins, but it can do pretty much everything.<p>I&#x27;ve barely scratched the surface of what it can do, but since I live at the intersection of CS and Education research, it is great how BibTeX will swap between APA and ACM styles easily, or how I can use a macro to create likert scale questions, for example. It probably takes the right kind of mindset, but I really liked the fact that my dissertation had a makefile (and was in source control, way back in the CVS days).
评论 #12830146 未加载
评论 #12830138 未加载
评论 #12830838 未加载
评论 #12830203 未加载
评论 #12836738 未加载
评论 #12830205 未加载
ArmandGrilletover 8 years ago
Spoiler alert: you will not master LaTeX (nor anything) in minutes. I have written my master thesis on sharelatex.com, the first months have been painful but at the end I had a great feeling of having achieved something. I still not consider that I master LaTeX but at least I can now use it for any standard documents and draw graphs and math formulas with ease.<p>I really suggest developers to use LaTeX to create their resume because it looks really professional and personal (if you do not just use a standard template). It takes some time but you will get exactly what you want and learn many things along the way.
评论 #12830345 未加载
评论 #12830638 未加载
ykover 8 years ago
It lacks the most important LaTeX tip, don&#x27;t fight the machine. LaTeX is really good at getting documents that look 90% as good as an actual typesetter could make them look, if one can live with somewhat conservative looking documents. The last 10 percent, fixing margin width, changing paragraphs and so on, are incredibly hard with LaTeX. (Of course LaTeX defaults are a lot better than word, largely because LaTeX automatically uses consistent headers instead of sometime 15 pt and sometimes 16 pt underlined.)
评论 #12830268 未加载
评论 #12830758 未加载
评论 #12830820 未加载
评论 #12830192 未加载
renke1over 8 years ago
I used LaTeX a lot in university, but I wouldn&#x27;t recommend it to anyone. Even a minimal (and good looking) document requires a lot of (La)TeX knowledge.<p>You can of course use one of many existing templates, but you will quickly feel lost when you have to customize things.<p>These days, just go with Markdown (or the like) and just include assets (say graphs) as SVG and be done with it.<p>For scientific papers (especially with two columns layout) you probably have to go with LaTeX though.<p>Edit: By the way, my take at minimal LaTeX templates: <a href="https:&#x2F;&#x2F;github.com&#x2F;renke&#x2F;latex-templates" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;renke&#x2F;latex-templates</a>
评论 #12830176 未加载
评论 #12830450 未加载
评论 #12830004 未加载
评论 #12830199 未加载
评论 #12829956 未加载
apathyover 8 years ago
Overleaf.com is really nice too, if you work with others (e.g. on academic papers). The most painless papers I&#x27;ve ever written were with other competent people using LaTeX and overleaf. ShareLatex is good too, I&#x27;m not sure if you can autosubmit to journals and preprint servers with it though. That last feature is terrific for academics -- it&#x27;s how publishing should work, but usually doesn&#x27;t.<p>I spent the same amount of time (72 hours) getting one hairy equation laid out in Word that I spent compiling my entire dissertation in LaTeX. Naturally the former was a request from my adviser, who did the latter back when she was a student. Dammit.<p>If you have any serious math in your writing, nothing else comes close. (Protip: Mathematica, the only non-free software package that ever earned its keep for me, will directly export equation cells as LaTeX if you ask nicely. I can&#x27;t stand doing tedious symbolic manipulation without it.)
评论 #12831662 未加载
mtrnover 8 years ago
I&#x27;ve written my first LaTeX documents with LyX [1], a wonderful application, if you&#x27;re just getting started.<p>[1] <a href="https:&#x2F;&#x2F;www.lyx.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.lyx.org&#x2F;</a>
评论 #12831102 未加载
评论 #12829995 未加载
thomasahleover 8 years ago
From various tutorials I feel my knowledge of latex is very top down, and not very deep. I just recently realized that {} are not needed for singletons, so I may for instance write \frac12 for 1&#x2F;2.<p>Can anybody recommend a more bottom up guide? Something more similar to learning a programming language, where you start with the basic syntax and build on features iteratively?<p>Is Knuth&#x27;s book the best way to go? Or is that like learning C, when you wanted to learn C++?
评论 #12830109 未加载
评论 #12830533 未加载
评论 #12831194 未加载
评论 #12830190 未加载
aduitsisover 8 years ago
For any poor soul that has to write LaTeX for whatever reason but doesn&#x27;t want to bother installing anything, I cannot recommend <a href="https:&#x2F;&#x2F;www.sharelatex.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.sharelatex.com&#x2F;</a> enough.
评论 #12830008 未加载
评论 #12830002 未加载
CalChrisover 8 years ago
This is a good beginner doc.<p>I&#x27;d never used LaTeX until about a year ago when I needed it to write a paper. The first thing I wondered was how to install it. Surely in 2015 installation would be a snap. It&#x27;d be in the App Store. Or Homebrew.<p><i>Do not install LaTeX.</i> Use it in the cloud. I use www.overleaf.com which is awesome. Similarly, I use www.draw.io to create PDFs for my drawings.<p><pre><code> \usepackage{microtype} \usepackage[hang,font=bf]{caption} \usepackage{natbib} \usepackage[unicode=true]{hyperref} \usepackage[noabbrev,capitalise,nameinlink]{cleveref} \usepackage{amsmath} \usepackage{csquotes} \usepackage{minted} \usepackage{inconsolata} \usemintedstyle{bw} \usepackage{float} \usepackage{siunitx} \usepackage{booktabs} \usepackage{url} \usepackage{graphicx} \usepackage{textcomp} \usepackage{fixltx2e} </code></pre> The one thing I&#x27;d add to this tutorial is citations and bibliographies.
评论 #12833588 未加载
评论 #12833681 未加载
评论 #12832715 未加载
andrew3726over 8 years ago
&quot;Brief Intro to Latex for programmers&#x2F;developers&quot; vs &quot;Master LATEX in minutes&quot;, quite a difference! But looks nevertheless like a good introduction to LaTeX. Just why the all the emoji...
评论 #12829990 未加载
good_gnuover 8 years ago
Tip for people who want to compile LaTeX from the command line: latexmk is basically a build tool for latex, which can also do things like incremental compilation and listen for changes. It&#x27;s part of MacTex and can also be installed with the package manager of your choice if you use texlive.<p>Another tip: If you usually write markdown, pandoc can turn Markdown interspersed with LaTeX code into pdfs.
daemonkover 8 years ago
I personally really like using latex. But the main problem for me is that latex is not really designed for collaborative editing, especially with people who don&#x27;t know latex. are there any track changes feature plugin&#x2F;app that&#x27;s available and relatively simple for people who mainly use MS word.
评论 #12830319 未加载
评论 #12834836 未加载
评论 #12830161 未加载
paraditeover 8 years ago
The author mentioned ShareLaTeX but not the other popular cloud service overleaf.<p>I actually would have done the same given my experience with both. Recently I tried out overleaf in order to allow others to collaborate on a paper. However, what was compiling perfectly fine on my local machine just refused to compile on overleaf, keep throwing me error related to $ symbol even though I did not use $ symbol at all (I used my own bst and cls). After googling for 30 minutes without finding a fix, I gave up and turned to the alternative, ShareLaTeX. It compiled perfectly with no errors on the first try.
评论 #12832004 未加载
评论 #12831655 未加载
mydpyover 8 years ago
LaTeX is much deeper than this &quot;mastery&quot; document conveys. Although, LaTeX is significantly easier to pick up if you learn to program first. I appreciate the author sharing this here though :)
santaclausover 8 years ago
I still wake up from nightmares about pages upon pages of overfull hboxs...
myf01dover 8 years ago
Pro tip: you can&#x27;t.
user5994461over 8 years ago
Stupid question: Outside of the maths heavy documents, could markdown or restructuredtext be a substitute to Latex nowadays? It is a lot easier to learn and use.
评论 #12832451 未加载
评论 #12831950 未加载
评论 #12832523 未加载
评论 #12832454 未加载
ameliusover 8 years ago
Sometimes I wonder: why can&#x27;t LaTeX be just as simple as HTML, or perhaps even simpler? Except perhaps for pagination and available default fonts, HTML practically fulfills all my formatting needs. (Note: HTML includes MathML, a mathematical formula markup language). And for automatically numbering tables and figures, one can easily write a script that is completely independent from the underlying formatting language.
评论 #12831048 未加载
评论 #12830850 未加载
评论 #12830404 未加载
评论 #12834808 未加载
ajarmstover 8 years ago
While I applaud the effort, this sort of thing suffers from the same problem any &quot;quick introduction&quot; to something rich and complex has: it&#x27;s easy to see the complexity and discern the unfamiliarity, but requires effort to discern the value. No one has ever been convinced of the value of TeX&#x2F;LaTeX, Vim, Emacs, Awk, Lex, Lisp, etc. by a fifteen minute intro. They&#x27;re convinced by pushing themselves (or being forced) to use the tool for a substantial period of time (usually weeks) over several significant projects until they discovered the familiarity, power and utility that it affords people who are sufficiently familiar with the tool. In a machine shop, a lathe isn&#x27;t an obvious choice for a project until you already know how to use a lathe.
0xmohitover 8 years ago
Just wondering if people here use ConTeXt [0] as well?<p>I&#x27;ve personally found it somewhat easier to manage floats in ConTeXt as compared to TeX&#x2F;PDFTex.<p>[0] <a href="http:&#x2F;&#x2F;wiki.contextgarden.net&#x2F;What_is_ConTeXt" rel="nofollow">http:&#x2F;&#x2F;wiki.contextgarden.net&#x2F;What_is_ConTeXt</a>
mixedmathover 8 years ago
A better title would be &quot;How to produce a simple LaTeX document in minutes&quot;. Or perhaps even &quot;Another brief LaTeX tutorial&quot;.<p>When I first began to use LaTeX long ago, a friend of mine gave me a preamble and essentially told me to not touch it until I knew better. This was very helpful to me, and I immediately began to use LaTeX in a mindset that separated content from presentation. Later, I did know better, but I&#x27;d already gotten the gist of what&#x27;s going on.<p>Years later, when I introduce LaTeX to others (which I have frequently done), I follow the same starting path.
curiousgalover 8 years ago
Surprised no one mentioned TeXworks[0] as an alternative for easy installation.<p>0.<a href="https:&#x2F;&#x2F;www.tug.org&#x2F;texworks&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.tug.org&#x2F;texworks&#x2F;</a>
umbsover 8 years ago
I used Latex extensively in Univ for thesis and publishing papers. Since then, I forgot that knowledge and am having hard time picking it up.<p>However, I briefly used www.sharelatex.com, is a web GUI (or WYSIWYG) type approach to Latex. It&#x27;s a good project and makes using Latex slightly easier, but user must still know various packages, how to layout images etc. Nonetheless, sharelatex is a good effort and hope it benefits others.
thanatropismover 8 years ago
At my school overleaf.com is the standard. Some professors are git-savvy, but most use overleaf to keep tabs and comment on dissertations.
graycatover 8 years ago
I just use TeX, never LaTeX. With TeX, the documentation is shorter and, IMHO, better written. That is, get to concentrate on just Knuth&#x27;s <i>The TeXBook</i> -- nicely done technical writing.<p>With LaTeX, I suspect that really should also know the underlying TeX, but with some understanding of TeX can do just fine without LaTeX and all its extra considerations.
mercoraover 8 years ago
I am not really into LaTeX but i write all my letters with it and like doing so very much. I get nice looking clean documents that have a very professional appeal and are much more convenient to create than in any full fledged editor.<p>I just use templates and fill in the blanks. I once showed my not so computer affine sister how to do it and she likes it too.
评论 #12829998 未加载
andrepdover 8 years ago
An important correction: don&#x27;t use TexMaker, it&#x27;s no longer actively developed. Use TexStudio (<a href="http:&#x2F;&#x2F;www.texstudio.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.texstudio.org&#x2F;</a>), the fork&#x2F;continuation of that project. Much more polished, performant, and many more convenient features.
JeremySover 8 years ago
Filename for screenshots should be changed ;)
nyankosenseiover 8 years ago
Has anyone tried the Lout typesetting program? I worked with it several years ago and was very impressed. Mark Summerfield uses it for his programming books:<p><a href="https:&#x2F;&#x2F;www.qtrac.eu&#x2F;lout.html" rel="nofollow">https:&#x2F;&#x2F;www.qtrac.eu&#x2F;lout.html</a>
arca_voragoover 8 years ago
For those of you who like latex output but find learning it daunting, give emacs org mode a try, as it can export to latex easily, and you can always break into actual latex inside org if you are doing something more complicated.
boramalperover 8 years ago
If you are looking for a more coherent and better source, Wikibooks has an amazing Latex guide:<p><a href="https:&#x2F;&#x2F;en.m.wikibooks.org&#x2F;wiki&#x2F;LaTeX" rel="nofollow">https:&#x2F;&#x2F;en.m.wikibooks.org&#x2F;wiki&#x2F;LaTeX</a>
biswaroopover 8 years ago
A latex tip: hover over equations in Wikipedia to get the syntax.
ankitbkoover 8 years ago
I love the licence he has included. Rarely see it used anywhere.