First introduction to LaTeX
sharelatex.com
sharelatex.com
(I sound like a shill, but check my comment history — I'm not affiliated with them. Just a happy customer.)
But what I cannot understand is, how you still recommend stuff like $$ in a new beginners guide in 2017.
I had several moments in this tutorial where I thought: Oh, god. This got deprecated 20 years ago.
I do support OP's thoughts that a 'modern' LaTeX solution like ShareLaTeX should encourage best practices though.
\begin{equation*}
...
\end{equation*}
for consistency and ease of switching between numbered and unnumbered.It's true, finding modern LaTeX tutorials is even harder that modern c++. It shares many of the same problems.
We put together a LaTeX course (in german) for physics student every year and keep it up to date with best practices as much as possible: http://toolbox.pep-dortmund.org/files/archive/latest/latex.p...
LaTeX users significantly more often reported to enjoy
their work with their respective software than Word
users (t (36.27) = -3.23, p <. 01).
From: http://journals.plos.org/plosone/article?id=10.1371/journal....You are not alone. :-)
I admit that I never sat down to understand the latex design principles and learn it the hard way. So maybe I'm just uninformed.
But seriously, I just want to write some text with formulas.
The error messages are so useless, usually I'm forced to trace a bug by commenting out sections of text. For even the most trivial features, packages have to be included. Finding the right set of compatible packages is a science on its own. Usually you start with somebody else's document header and try to tweak it to your needs.
And good luck placing an image on the page where you want it.
I assume that if you spend some time understanding the language, it becomes clearer and less of a mess.
But I feel like there is room for a declarative text editor that's a little bit more intuitive.
[0]: https://www.sharelatex.com/blog/2016/06/29/latex-log-hints.h...
[1]: https://www.sharelatex.com/blog/2016/11/01/introducting-late...
First, LaTeX wants to be so much, that it can be difficult to get simple things done.
Second, LaTeX's tooling is abhorrent. The quite useless error messages are just one example. Why, for the sake of whoever, would a user-facing tool require me to compile the source twice to get some references right? There is no valid excuse for that.
The real problem here is that LaTeX is not what a document should be described in. LaTeX is a middleware that should be hidden from the user wherever possible.
There was when TeX was originally written to run on memory constrained mini computers. I agree that there isn’t an excuse today.
I've never really had a problem with the error messages or packages personally.
With HTML, at least I have the inspector to see where bounding boxes are. With latex I'm blind.
\documentclass[a4paper]{article}
\usepackage{layout}
\begin{document}
\layout{}
\end{document}
Ought to sort you out. There’s also the showframe package.Latex the design template system? Yes, just about.
They are to each other as HTML is to CSS - completely complementary.
The main downfall of Latex is confusing the two spaces. The intent is good though.
HTML + CSS is not as cleanly abstracted for pure document markup and layout (as it's a more general solution), but it's getting closer every year.
Contrast this with the supposed HTML and CSS divide which has to later in a scripting language and all the joy they all enrich on each other. Is it any wonder that JSX is taking off?
Now, tooling is behind. But that is because it isn't cool to build up tooling on something that doesn't have the user base of a browser.
Yes, I know. That was my point. I concider that the problem and a major reason why it's still so hard to use and one reason why tooling sucks for it.
> JSX
... has nothing to do with HTML & CSS which are both quite happy if you don't use scripting at all. If you think JSX applies in any way here I posit you don't understand the problem space.
And this is highlighting where we agree to disagree. I consider it somewhat of a strength of TeX that it is a single language for what it does. Makes scripting it much easier to consider. (Far from easy, I grant.)
As for tooling. Tooling is almost always strictly a matter of labor. More people working with it would have produced tooling that was what people wanted. Consider how terrible the tooling for early web was.
But again, I do not think you are wrong, per se. It would take an empirical argument without appeal to beliefs to convince me that one is truly better than the other. I just happen to like the TeX way in absence of these experiments.
None of these things are impossible to solve for LaTex, but they do make it conceptually harder to detangle.
I don't know how to test this hypothesis. I can present my reasoning for feeling it, though. And that is simply that the technical makeup of the current technologies is built on sand.
Javascript is a mess technical capabilities that is constantly getting frameworks rewritten to address previously solved by other framework's problems.
CSS is a beast when you get in the woods and is basically dominated by whoever has produced the most recent resetting sheet. More, it seems that you can pseudo script CSS things now, what with duration and other items making their way into the standard. (Or, just the :content meta where you can now author crap in the css....)
And HTML, the cornerstone, is a mess of different ways to nest things into pseudo xml. There was a push to make it legitimate XML, but that failed due to the fact that it wouldn't work.
Contrast with LaTeX which just doesn't have a gui. The equivalent of the "Inspector" tab. You seem to be claiming that this is not fixable, but I have some serious doubts on that claim. Especially since I didn't have it at the beginning of my web career, either.
It's more about how they separate out the ideas conceptually - document structual markup + document layout styling.
LaTeX kind of does this in how most people use it but it bundles the ideas together which makes it very hard to reason about and complicates the space.
> You seem to be claiming that this is not fixable
Not at all! I'm saying it's not there yet and progress on that GUI/Inspector/software has been hampered by the above conceptual problems due to the design of the language.
They are solvable, of course, but LaTeX seems to go out of its way to make it harder to solve.
By the way, try the option [H] on floats, it forces it to stay in the position it is in the code, instead of letting TeX rearrange it to minimise wasted space.
It doesn't come from the field of economics but there is a very good term for why it's so hard to develop an alternative to complex systems like LaTeX:
The Anna Karenina Principle [0]
The reason nobody will jump on a LaTeX alternative is because everybody who uses LaTeX needs something different from it. In a way, you could say that LaTeX has a 'niche' in the long tail [1] of the distribution. The 'happy families' in this analogy would be everybody who gets by with Microsoft Word.
For example, for "Learning to learn by gradient descent by gradient descent" arXiv:1606.04474 (https://arxiv.org/abs/1606.04474), if you click on Download->Other formats, you get the latex source code and in this case also the Omnigraffle files for the diagrams.
IMHO, it's much better to use markdown generally and insert latex only when it is completely necessary.
A latex usage example is creating a tikz picture or for introducing \pagebreak or \framebreak in pdfs or beamer presentations.
For the rest of the cases, markdown is much less verbose and can accomplish the same.
I find that this route is best for documents that you are writing: you can focus on the content and use a nice markdown editor like Ulysses without having to worry too much about formatting.
On the other hand, when I'm trying to typeset a pre-existing text for reading/distribution, I find it a lot easier to copy and paste the text into a latex template and then tweak it incrementally until everything looks the way I want it to.
I've also started generated latex PDFs via the Jupiter notebook. They have a quick and easy preview, plus markdown + latex math + code integration that's easy.
Is there some good ready-made templates around one could try without too much hassle?
\usepackage[shortlabels]{enumitem}
Then you can simply use: \begin{enumerate}[(a)]
\item The first item
\item The second item
\item The third etc
\end{enumerate}
Other label types are very intuitive this way.I could have pulled this from an old document I made, no memorizing neccesary. It is also very easy to find using a search engine, as I did in this case: https://tex.stackexchange.com/questions/208696/using-enumera...
Right now, I'm finishing my doctoral thesis and compiling locally, because I'm without internet for long times due to travelling. Therefore, I scraped the docs to have a local copy.
Am glad to see the praise for ShareLaTeX here, though. Especially due to their solutions with ridiculous error messages and their general approach. When I encounter a cryptic problem I switch from vim+vimtex to texstudio -- which usually helps a lot by providing an overview, syncing the logs to the occurrence, organizing them by severity and enhancing understanding by unfolding the log.
The only difference between ShareLaTeX and overleaf I see, is SLs over-the-tops documentation. Kudos again and thanks.
For general interest, my current LaTeX workflow is:
* Write in vim + vimtex.
* Switch on continuous compiling (that's like ShareLaTeX).
* Using synctex to preview with zathura (lightweight pdf).
+ This is really nice, you can configure vimtex to it.
+ CTRL-Click into the (zathura) pdf focuses vim to the
corresponding position
+ <leader>lv in vim jumps to the position in the
pdf being open side-by-side in zathura.
* In case of complex errors open texstudio
* Save battery, use vimagic and be happy.There is also the (awesome) fact that ShareLaTeX is free software (under the AGPL no less).[1]
One other benefit of ShareLaTeX is that they are completely free [as in freedom] software (under the AGPL).
Fwiw my Getting to Grips with LaTeX[1] tutorial have been around for years and are well used.
Besides, custom shortcuts make LyX much faster than writing TeX directly with autocomplete.
With mathematical homework, aren't you spending significant time ensuring that what you typed into Latex rendered correctly? (I.e., the edit-compile-look loop?) I sometimes omit parentheses or put braces in the wrong place, which causes the display to be in error. Introducing another step in the process seems troublesome, and would take me out of the "zone" of problem-solving. (I.e., handwritten copy -> Latex -> rendering vs. just handwritten copy.)
I switched from troff to Latex around 1991. The explanatory tables for the sprinkler system and the electrical panel for my house are in Latex. So, I'm a Latex-phile, just skeptical about this case.
>[..]
>I could see it working for a lab report.
I think here is your answer: much depends how much your homework is like a lab report. I have occasionally had courses where the were only a few homework assignments and lecturer expected written answers typeset in LaTeX (or similar).
But I wouldn't bother either if I was the only person who would read my written notes.
Every graduate math class I've taken has asked for typeset problem sets; some have required it.
Pros:
- Transcribing from paper often revealed problems with my solutions
- Easy to modify / improve solutions once typeset
- Easier for me and the graders to read (I have bad handwriting)
Cons:
- Steep learning curve (first assignment took me many hours to complete, but provided the template for future assignments)
- Painful to edit sequences of equations if you are explicitly showing your work
Eventually you're going to come up with your own formatting ideas that you can tweak over time but it's much less stressful than drinking out of the firehose when your homework is due in four hours.
Your TA thanks you infinitely for typesetting homework in LaTeX :)
- WYSIWYG with TeX math: Dropbox paper lets you press $$, type formula, press Enter; and I shudder to suggest it but I hear modern Word more or lets you type TeX math [https://superuser.com/a/509805/33415].
- WYSIWYM: Lyx, https://www.fiduswriter.org/, http://www.texts.io/
- Markdown with TeX math: there is alas no single standard syntax but tons of tools do support it: https://github.com/cben/mathdown/wiki/math-in-markdown For conversion Pandoc is king, infinitely flexible, and can render through LaTeX, HTML or many other ways.
* Markdown is unbtrusive enough that styling it in-place gives you a form of WYSIWYG. Several editors doing this (plus rendering formulas in-place): StackEdit, Typora, https://www.gitbook.com/editor, Atom with https://atom.io/packages/preview-inline (see also https://discuss.atom.io/t/19222), http://markdownnotes.com/, and my own https://mathdown.net
- https://overleaf.com similarly has "rich text mode" that styles LaTeX source and renders formulas in-place. [https://www.overleaf.com/blog/81]
- Other lightweights markups: there are too many, notably reStructuredText, asciidoc are popular and powerful. But I'd start with Markdown.
I'm genuinely interested to hear your experiences if you try any of these...
Gonna plug Lyx, the best tool for writing LaTeX without actually feeling like you're writing LaTeX.
I just used the well-known Michael DeCorte resume template as a starter, adjusting to suit.
The issue is, I write something that requires a document editor like once month (if) and it's usually a minimal number of pages. I do it so infrequently it's always a huge pain even using Libre Office. And every time I think "it really ought to be possible to do this with Vim" (which I suppose LaTex would solve, and that's a big plus). It's just the learning curve/benefit ratio isn't there yet.
Works great and is fast, but I wouldn't do it again (thinking about using CSS3 + print properties for that).
Maybe I was out of luck, butI couldn't find anything useful fulfilling these requirements - if you have suggestions, I'd be interested in seeing what's possible.
How it went, though? Due to our use cases, this LaTeX service is a complexity beast. The templating isn't fun; LaTeX was not created to be templated itself. We have escaping in place, but from time to time user input breaks it. We have no way to let users create their own reports at this point. There are multiple reasons, but LaTeX being not that beginner-friendly is definitely one of them.
But given the template is correct and the user input is sane, it's fast and simply works.
But 2000 pages? That's a data dump, not a report.
Amount wise it really feels like a dump, yes.
looking at that sample article, I would say yes, that's what they're saying:
https://www.authorea.com/users/3/articles/152971-positive-bi...
What makes your offer different?
The increase in both computational power and connectivity has had impact all over the place, but has also transformed science. Even the most analog disciplines now have computational modeling branches, are building datasets, and need best practices for presenting and publishing computational artifacts. From Digital Humanities, to Computational Biophysics.
Printed pages struggle to convey the depth of these results, as do (originally) flat data formats like PDF, which are oriented towards pixels, rather than datatypes.
But I have to disagree strongly about sniping LaTeX as (completely) outdated, because of the need to supplement the printed page with a "content browser". Yes, we most certainly need a computational toolkit for presenting scientific results and aiding peer-review. But no, typesetting is not going away. The human taste for aesthetically pleasing documents is here to stay, and beautifully laid out narratives are instrumental for getting your message across to your audience. Delighting the eye allows the reader to focus on content, rather than struggle with an ugly form.
So my take on my work at Authorea (yep, beware inside bias!) is to transfer our typesetting best practices to the web as the baseline, but then focus and innovate on the "depth" of web-first science articles. To improve academic writing, we need to expose and interact with data, do the well-known social collaboration gig, and embed guarantees for transparency and reproducibility. Machine-assisted quality control and authoring are the two large impact sweet-spots to hit in the coming decade on this front. Time will show if we're in the know or not, but LaTeX is certainly a point of departure that has to be supported, and learning it is a healthy thing to do in 2017. We have a lot of important work ahead of us!
Is this really true? I don't think it is any more. Just look at graphical user interfaces these days: they're horrifically ugly, as exemplified by Windows 10, and also the flat-UI trend that everyone has adopted.
However, that one day is filled with rage and confusion. Then again: if you're serious about writing, is it worth it? Absolutely.
But if you have to generate more than one document with the same formatting, or a very large document, LaTeX is the way to go.
I use it, interfaced with SQLite-generated CSV files, to compile 50 page reports for work with no effort at all. This process used to take hours.
Another thing I do for work is using SQL to actually generate LaTeX documents programmatically, using premade macros that are stored in a class file.
The power and consistent behavior is what makes it better than word processors.
Rendering LaTeX to PDF would be far less fuss, however, when you already have the HTML templates it is the path of least resistance.
Which isn't to say that word processors aren't nice. I actually held off on learning LaTeX years ago because I didn't see the point. The fact that I can still reliably open my documents is huge, though. And it only takes training to learn to use it. For transient things that just don't matter? Yeah, they work fine.
What irks a lot of us is how we typically are given yet another document sharing method for documents that have to be kept in sync with source.
Worse, a SharePoint or workdocs link that only works from one of my browsers correctly and has horrendous correspondence features. So bad that collaboration typically is, pick someone from the team and they will completely own this.
I've had multiple instances where a document that compiled with one LaTeX installation didn't compile with another. It was always possible to fix after a certain amount of head-scratching, but LaTeX is a twisted network of packages that interact with each other in unpredictable ways, and there's no real guarantee that your LaTeX will still compile in 10 years.
I've toyed with the idea of going vanilla TeX for most things. Haven't done it, yet. Org-mode has made it so I really like the source format.
Seems invariably, someone doesn't realize which is the old and which the new. So, when someone finally "accepts" the changes, something if getting lost. Worse, the folks that never accept and just keep passing the review docs.
And heaven help you if you want to preview style or layout changes.
(And please don't take it as this being fixed by other toolchains. Not my intent.)
The world of pain I go through when I have to collaborate with partners in government or defence, sending back and forth word files from various word versions and tracking comments and changes leaves me losing the will to live.
Oh if we would only have the GitHub GUI for Office files!
Also commenting sucks, in some versions replies add a comment (which renumbers them all..), and in the next version the comment numbers are not displayed. It's a mess really.
Add-ons like iManage are relatively useless if you work with multiple orgs.
LaTeX is great for a lot of things... but you might want to look at ConteXt too. While it's less sophisticated in many ways, but way way more advanced in others, like color-handling and inline figures and images, and better support for advanced PDF features.
It's also a little bit lower level... whereas LaTeX has a lot of opinionated defaults, ConteXt tends to expose a few more of the primatives.
Basically - if LaTeX is the better Word, ConteXt is the alternative InDesign.
https://tex.stackexchange.com/questions/4987/why-should-i-be...
> Donald: My general working style is to write everything first with pencil and paper, sitting beside a big wastebasket. Then I use Emacs to enter the text into my machine, using the conventions of TeX. I use tex, dvips, and gv to see the results, which appear on my screen almost instantaneously these days. I check my math with Mathematica.
And the inventor of TeX is not most people, and decided to invent an assembly language for his book, rather than using a high level language.
I have read through about 2/3 of the TeXbook so far and currently am writing my thesis in it. So far it's been really enjoyable! That's not something I could say about my past struggles with LaTeX.
Maybe once I have TeX down really pat, I'll peek back over into LaTeX, but for now I really don't see a need.
Getting a handle on the typographic primitives that TeX offers makes a huge difference. I've actually found it surprisingly easy to handcraft whatever macros I need. Though I do also use a the amstex macros.
Admittedly, it's easy to end up with a horrid mess of macros if you're not careful, but a bit of forethought and experience with frontend design patterns goes a long way.
One thing I haven't figured out yet is how to deal with CJK languages nicely.
Deckset is cool but I can't customize much of the layout, and I don't love HTML-based solutions. I don't love Beamer either because you have to write a lot of ceremony for a single slide, and most styles feel very "old" (lots of side/top bars).
Here's an example of what you can do using the `lecturer` package:
https://twitter.com/evacchi/status/738018829905887232
the only problem with plain TeX is that there is no good listings package
For full information see http://tug.org/aims_ben.html but note that if you select to get the journal electronically then a one-year membership is $45. (If you are a student, recent student, senior citizen, or come from a country with a modest economy then the annual rate is $15.) It could not be more reasonable.
Two issues that I have run into are live word counts for assignments for profs who refuse to give page counts, and having to maintain multiple document versions manually (one in TeX, one in Word) because my field (Nursing) is full of non-tech savvy older profs who will look at you funny if you provide them with something outside their comfort zone.
i.e. for PDF's (like a resume), What are the advantages of latex over html+css->pdf?
(This is assuming I don't care about things like table-of-contents generation or precise chapter-aware commands)
That said, if you need any document, be it a résumé or anything else, and you need it tomorrow, use the tools you know. And don't feel bad about not knowing other tools. Trying to get up to speed on anything that is worthwhile quickly on a new too will almost certainly be frustrating. Even word processors.
For a resume, I think something like Google Docs is better. You want to have a lot of control over the layout so it fits on a page or two. Latex is good for automated document generation but with resumes it's not common you'll be generating them more than every year or so and you should be tailoring them to each job.
LaTeX and JSON schema based resumes both offer modularization and help with generation of tailored resumes. I don't find any other advantages IMO.
http://www.codecogs.com/latex/eqneditor.php
More:
It's really WYGIWYAF. What You Get Is What You Asked For.
What You Get Is What LaTeX Thought Was Best For You. So, images spreading to the margins of the page, a block of whitespace on the next page, lots of weird characters instead of your local characters and lots of more obscure stuff.
Is that really an issue with xetex, though?
A looks like a nice tutorial.
Posted because there are lots more places where I think being up to speed with TeX / LaTeX can get you hired by someone interesting / or in lucrative if dull job, not necessarily as a programmer:
Through a friend, I met and chatted with, eventually for hours, the a gentleman whose last occupation turned out to be the publisher for authorized education books... In Iraq... Under Saddam.. Why we got so deep talking at my friend's dinner party? We were arguing the real time composability of TeX. I don't know the chances of such a conversation with any septuagenarian gentleman, to start with, but I hope my friend's promise to invite me next chance we can meet will arise. I encountered a delightful gentleman programmer by nature as opposed to training; his formal education was history and languages, self taught programmer, who also mentioned MCL. I last used LaTeX in earnest in the late 90s - his knowledge, I should have asked if he was actively using, seemed current... our mutual friend a publisher, this makes me think I ought inquire if a book is forthcoming. Regardless, I think it's fascinating just how entrenched TeX and LaTex are in the minds of users. And publishers I've met who use TeX are devotees. I've been told by a couple now, that they expect associates to pick it up on the job. So potentially this might be a angle for a programmer to side move into a different field. Associates hired or promoted to work with publishers are usually tasked with longer term research into subjects and trends, it looked to be rewarding work. And in politics, economics, tech obviously, a programmers skills might be enough for the transition, especially if the publisher felt lightweight on in house abilities.
I used to encounter commercial applications wrapping TeX frequently, in the 90s. One, by a British software house since subsumed in the XML everything, enterprise data / private equity rollup fad, I forget the names it went through, was essentially selling TeX, plus advert placement layout engine, used by FAZ, Suddeutsche Zeitung, lots of Italian dailies, the EC, for a sweet 50,000 a seat.
Mass market Print publishers need tools to manage costs that drill down to the weight of ink used on the paper. It's a reason the InDesign ecosystem is stable- third party integrations that are expensive to write for a select audience. But smaller houses have wider tolerances, may "leave that to the printer" (hope they can get good bids without the pre press estimate), so the variety of pre press tools widens to include just LaTex and a impostor for separations/plates.
Knuth's Digital Typography, is a excellent read, and a chapter in that, showing by how much, and how easily, major press titles can be made more readable, save space, and more, became a brilliant sales tool for my consulting. If you know TeX / LaTex, and need a gig, Digital Typography, plus the addresses of nearby smaller publishers, might be a great way to catch good work. I found so, anyhow.
Being up to speed with LaTeX can get you hired, but you've always gotta be prepared for the excited, "You know LaTeX! Let's do all of our documentation in it!" and the gentle conversation that ensues about how expensive free software can get once you involve people and processes...not that LaTeX isn't great; I use it myself for print-ready PDFs, but for corporate manuals and stuff and getting tech writers off the street who can hit the ground running with it, it's just not the right solution for most organizations.