- Editorial Guidelines
- Privacy Policy

Where Does Latex Come From?
Vanessa Richins Myers is an experienced horticulturist, garden writer, and educator. She received a Bachelor of Science degree in horticulture from Brigham Young University.
- Brigham Young University
- Conservation
The term latex is often used as a synonym for rubber, but the term actually refers to any liquid medium that holds a suspension of tiny polymer particles. Latex is a natural plant substance, but it can also be manufactured by chemical processes.
Natural latex is a plant material found most famously in the rubber tree—but it is actually found in almost 10 percent of all plants. For example, opium is actually the dried latex from the opium poppy. Latex is not the same as sap but is a separate substance, created by the plant as protection against insects. Latex in plants is a complex mixture of proteins, alkaloids, starches, sugars, oils, tannins, resins, and gums that coagulates when exposed to the air. Plants use latex to seal themselves after injury, thereby protecting themselves against insects.
Latex can also be made synthetically, by polymerizing a variety of chemical substances and suspending them in an emulsion.
Natural Latex
Originally, rubber was produced from the latex of Ficus elestica , a type of fig tree. Today, most natural rubber (also called India rubber) is derived from the natural latex extracted from the Pará rubber tree ( Hevea brasiliensis), a plant native to the Amazon but now grown commercially in equatorial regions of Southeast Asia. Latex is harvested from the trees by slitting the bark and allowing the milky latex to seep out for collection, a process similar to that used to tap maple trees for sap. After tapping, chemicals are added to keep the latex from stiffening up. It may go through processes like coagulation, centrifugation, compounding, vulcanization, stripping, leaching, chlorination, and lubrication in creating the final natural rubber product. Natural latex is thought to be a cause of allergies in some people, although some studies suggest that it is not the latex itself , but the chemicals used during manufacturer that may actually cause the allergic reactions.
Synthetic Latex
Synthetic latex is also a liquid emulsification of polymers, but rather than natural plant polymers, synthetic rubber uses various substances found in petroleum products. Synthetic rubbers are typically stronger and more stable than natural latex rubber for products such as tires. Some people believe that synthetic latex is also less likely to cause severe allergic reactions. However, people with certain chemical sensitivities may find synthetic latex to be more problematic than natural rubber.
- The 7 Best Eco-Friendly Raincoats of 2023
- The 6 Best All-Natural Chewing Gums of 2023
- The 7 Best Non-Toxic Crib Mattresses of 2023
- The Treehugger Guide to Sustainable Certifications
- The 7 Best Natural Insect Repellents of 2023
- Microplastics in the Air You Breathe and the Food You Eat
- The Best Places to Buy Ethical Bedding
- 6 Common Air Pollutants
- The 7 Best DEET-Free Bug Sprays
- What Are Volatile Organic Compounds (VOCs)? Definition, Examples, and How to Avoid Them
- Is It Legal to Call Gas 'Natural'? It's Complicated
- The 8 Best Vegan Conditioners of 2023
- Is Organic Food Worth the Cost?
- The 10 Best Eco-Friendly Mineral Sunscreens
- The Environmental Impact of Cosmetics Is Tremendous—Here's How They're Harmful
- The 7 Best Biodegradable Diapers of 2023
By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts.
- Main content
The best latex pillows
When you buy through our links, Insider may earn an affiliate commission. Learn more.
- Latex pillows can help deliver a great night's sleep because they provide an optimal mix of support and cushioning. Many are also designed to be cooling.
- The Saatva Dreams Pillow is our overall favorite thanks to its layered construction intended to support the head and neck with a cool, comfortable feel.
- See also: The best pillows for your bed
Everyone wants a great night of sleep. But if you're someone who has kids, pets, or a spouse who hits snooze all morning, restful sleep can be a challenge.
With all of those things working against you, the last thing you need is an uncomfortable pillow. If the pillow doesn't encourage airflow or leaves you with a pain in your neck, it's not doing its job of helping you fall asleep, stay asleep, and wake up well-rested.
To provide a high level of support and comfort, consider latex pillows. Latex is firm enough to support the neck, head, and shoulders, yet soft enough to create a comfortable sleeping environment.
Benefits of latex pillows
Latex pillows certainly aren't for everyone, as we discussed recently when looking at the best pillows . But they do offer advantages in quite a few areas over other types.
Latex, which is extracted from rubber tree sap, works a lot like memory foam, however, it's more breathable and typically cooler than what you'll find with memory foam. According to Sleepopolis , that's because it can have better heat and water dissipation, meaning it won't heat as easily in hot weather and will feel more cooling to those whose body temperatures typically run warm. The popular sleep blog also maintains that latex won't feel like you're sinking too far into the pillow, either, because while latex will mold to the contours of the head and neck, it won't hold it as distinctly as foam will.
Mattress and pillow manufacturer Purple also claims that latex pillows can help alleviate neck and shoulder pain through soft but firm cushioning that helps ensure proper spinal alignment and pressure relief.
Both sources also cite that latex pillows have antimicrobial and hypoallergenic properties, so you don't have to worry about bacteria forming inside latex pillows over time.
However, it's worth noting that some people don't like the dense nature of latex pillows, as they're a little heavier than other types of pillows. But the denseness allows latex pillows to hold their shape better over time — which is also why they can often be a little more expensive.
Options for latex pillows
Latex pillows may consist of a single piece of, or shredded pieces of material. A shredded latex fill will have better airflow, Sleepopolis said. On the other hand, some manufacturers place holes, slots, or ridges in the single piece of latex to allow for airflow in that style, too. With a shredded latex design inside a zippered pillowcase, you can remove some of the fill if desired, creating a personalized feel.
A single piece latex pillow may be molded with contours, which conform to the head and neck, providing support. Some latex pillows will have ridges or bumps.
Manufacturers make latex pillows in almost any size, including standard, queen, and king, as well as body pillows. Various firmness levels are available too.
Here are the best latex pillows:
- Best overall: Saatva Dreams Pillow
- Best on a budget: Organic Textiles All-Natural Latex Pillow with Organic Cotton Covering
- Best for a cooling, breathable feel: Nest Bedding The Easy Breather Natural Pillow
Updated on 7/9/2020 to edit the prices, titles, links, and remove one discontinued item, as well as reviews and ratings from third-party sites, because we've found them to be unreliable in the past.
The best overall
For a comfortable sleep, Saatva Dreams Pillow uses a layered construction that supports your head and neck appropriately, while staying soft to the touch.
Saatva is a luxury mattress company that also happens to make one of the best pillows you can buy.
The Saatva Dreams Pillow uses the same layered design as its mattresses, which consists of a core made out of shredded Talalay latex, surrounded by microdenier fiber. The core provides support for the neck and head, while the down-like microdenier fiber provides the plush feel of a down pillow, minus the feathers. The third layer is a 100% organic cotton cover that's moisture-wicking to keep you cool. The pillow is available in queen or king size.
Insider Picks contributor Kylie Joyner tested the pillow and "was impressed with the head and neck support it offered." She added, "It reaches a perfect middle ground of feeling soft and plush while being just firm enough to keep its shape throughout the night. I never once woke up with a flattened pillow or sore neck."
The pillow may be too high for those who sleep on their stomachs, but side and back sleepers will find the Saatva Dreams Pillow comfortable. "I typically sleep on my stomach and found that to be the case when in this position. However, when I slept on my back or side, I had no issues," Kylie said, who simply removed the inner core (yes, it's removable) as an adjustment for sleeping on her stomach (although, sleeping on your stomach isn't recommended by many experts).
Pros: Three-layer design provides support and luxurious feel, removable inner latex core, removable cover
Cons: Expensive, stomach sleepers may find elevation too high
The best on a budget
The Organic Textiles All-Natural Latex Pillow is a great all-around latex pillow offering multiple firmness options in a breathable construction.
The Organic Textiles All-Natural Latex Pillow has a breathable design and a comfortable organic cotton cover. Add in an affordable price tag, durable construction, and multiple firmness options, and this latex pillow makes for an outstanding choice.
Compared to other latex pillows, the Organic Textiles pillow has an average price point. Yet, its organic cotton cover delivers a feeling of luxury. The porous design also allows for maximum ventilation, though it might make it feel a bit heavy and dense.
Pros: Excellent all-around pillow for many different types of sleepers, good value, available in multiple sizes and firmness levels
Cons: May not hold its shape over several months
The best for cooling, breathable feel
It's expensive, but the Nest Easy Breather Natural Pillow has a shredded latex interior and cotton cover that allow just the right amount of airflow to feel comfortable.
The combination of eight inches of shredded latex inside and a soft organic cotton cover on the outside help gives the Easy Breather Natural Pillow a cooling feel. It's available in standard, queen, and king sizes, and the company claims that no chemicals are used in manufacturing.
This pillow has a high-quality Oeko-Tex-certified latex material, which enhances its ability to deliver a cool feel all night, according to Sleepopolis . Users may remove some of the shredded latex to adjust the fill level of the Nest Bedding pillow to match their individual needs.
The pillow is pricey, but Nest Bedding offers a 30-night trial to make sure you like it. Unfortunately, it is not machine washable, however, the outer cover can be washed when the fill is removed. A pillow protector is also recommended.
Pros: Excellent mix of comfort and support, latex is cooling, users can remove some of the fill if desired
Cons: Expensive, pillow seems a little small versus others, not machine washable
Check out our other buying guides for bedding
The best mattresses
A great mattress can be the difference between a good night's sleep that results in a productive day or a horrible night that makes you feel like you didn't sleep at all. Here are our top picks for the best mattress you can buy.
The best mattresses for side sleepers
Finding the perfect mattress is tough for side sleepers. We've done the research and some testing to find the best mattresses for side sleepers. Regardless of which one you choose from our favorites, though, we're confident that you'll get a good night's sleep. And if you find that these mattresses don't work for you, rest assured that they come with a sleep trial so you can take these beds for a test run before making a long-term commitment. Here are the best mattresses for side sleepers .
The best sheets for your bed
Few would deny that at the end of a long, hard day, sliding into a comfortable bed outfitted with soft, smooth sheets that pamper your skin is one of life's greatest pleasures. After all, you spend nearly a third of your life between those sheets, so why wouldn't you want the best?
So we've made it easy for you: We checked out all the top consumer buying websites, listened to opinions from bed sheet buyers, and tried sheets ourselves to compile our list of the best bed sheet sets you can buy.
The best memory foam pillows
Memory foam pillows are great at contouring to your specific needs and keeping your spine and neck aligned and supported. These are the best memory foam pillows for a great night's sleep.
The best duvet covers
Your cozy down-filled duvet needs a stylish cover to keep it clean and add some spice to your bedroom's décor. We've rounded up the duvet covers likeliest to suit your style, your budget, and your needs. Here are the best duvet covers you can buy.
The best down pillows
Down pillows are popular for their comfort and versatility. People who select a down pillow typically are looking for softness and cushioning versus lots of structure, though you can find firm down pillows. These are the best down pillows .
Subscribe to our newsletter. You can purchase syndication rights to this story here. Disclosure: This post is brought to you by the Insider Reviews team. We highlight products and services you might find interesting. If you buy them, we get a small share of the revenue from the sale from our commerce partners. We frequently receive products free of charge from manufacturers to test. This does not drive our decision as to whether or not a product is featured or recommended. We operate independently from our advertising sales team. We welcome your feedback. Email us at [email protected] .
Gallery — Homework Assignment
Gallery Items tagged Homework Assignment
Show all Gallery Items
Here we provide a selection of homework assignments templates and examples for school, college and university use. These often include a question and answer section already set out, along with space for the student name, course title, date and any other required information. Teachers and lecturers may also find these templates useful for preparing material for their classes.

Related Tags
Have you checked our knowledge base ?
Message sent! Our team will review it and reply by email.
Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Recommendation for homework use [closed]
I'm re-discovering LaTeX after an absence of 15-17 years. Sadly all my previous skills are gone so I'm starting from scratch.
I am taking two grad courses for which I have to submit assignments every week which involve embedding mathematical equations and code.
So I thought I'd post a question asking for stuff (code fragments, tools, techniques, ...) I should consider for the stated purpose.
Some things I'm currently researching:
- What is the best way to embed code (java, R, ...) into my Latex documents?
- What document type is best suited for these types of homeworks?
- I typically highlight my answers using a highlighter style or using boxes ... any tips on doing this in LaTeX?
- I typically have a header in greyed out text on every page which have the homework name, date, my name and my id printed on it ... any tips on doing this?
- I've discovered TexWorks and I love it ... anything else I should consider?
I read some of the previous posts here , here and here but didn't get the answers I was looking for.
- header-footer
- 1 Welcome to TeX.sx! Please only ask one distinct question per post! This is necessary for the Q&A format here. This way, other users with similar problems can find the specific problem they're looking for. A question here revolves around one abstract issue (e.g. greying out), not so much its real-life application (e.g. your homework). Please eliminate all but one of your questions from this question. You're most welcome to ask the other questions as separate posts (after checking that such questions don't already exist on tex.sx). – doncherry Oct 8, 2012 at 17:43
- Hi @doncherry, I read your comment and my thinking was that I'd like to find out how people best use LaTex for typesetting their homeworks. And, I feel that there are other folks out there who would have this particular questions. The points (or sub-qeustions) are points that I figure most people using LaTeX for this purpose will find useful. To – user1172468 Oct 8, 2012 at 18:01
- Your questions are definitely useful, and other people may have similar questions. The problem is with the way knowledge management works here. Take for example your fifth question about editors: Assuming it hadn't been asked before, and we get lots of great answers about editors here, each of them also containing responses to your questions 1-4. Then, one day, someone comes along asking a bundled question like yours -- not about homework, but about theses instead; this question has a subquestion about editors, and others about title pages and appendices. [tbc] – doncherry Oct 8, 2012 at 18:17
- [ctd] Would that question be a duplicate of yours? It certainly wouldn't make sense to have the information about editors spread out in two different questions, even though they information in the answers is going to be exactly the same. Also, homework requirements in LaTeX may not be as uniform as you think they are. I, for one, as a philologist, have never put any source code in any piece of LaTeXed homework; instead, it would be quite natural for me to include a question about numbering of linguistic examples -- which would probably seem quite odd to you. [tbc] – doncherry Oct 8, 2012 at 18:18
- 1 Hi @doncherry, tied up at the moment, will try to edit the question in a bit. Thanks. – user1172468 Oct 8, 2012 at 19:38
3 Answers 3
Some ideas:
The listings package provides the lstlisting code typesetting environment and defines a number of languages, including Java and R . This is as easy as \lstset{language=java} , after which the keyword formatting will automatically be set. Of course, you can modify or improve on this. You can even include external code files using \lstinputlistings[<options>]{<file>} . See the listings documentation for more information.
The standard document classes have been sufficient for most of my needs. Especially if you're talking about small/short documents, the article document class should work. book and report provides chapters, which you most likely do not need in this instance.
This depends on the style of the answers. Are you only presenting a number as an answer? A whole equation? A whole paragraph? You could create an environment that prints Answer: followed by the answer.
King of headers is fancyhdr . Setting the header is associated with a page style, which is easily created using
Read the fancyhdr documentation for more ideas. You may also require the xcolor package to change the font colour.
For a taste of the LaTeX editors out there, see LaTeX Editors/IDEs .

- I would think that meta.tex.stackexchange.com/q/2414/4012 also applies to questions that clash with our Q&A format by containing more than one distinct question? – doncherry Oct 8, 2012 at 17:45
You could use the listings or minted packages.
You can use article (or scrartcl , or memoir ).
You could use the framed , mdframed ot tcolorbox packages; boxes cretaed using the first two admit page breaks.
You can use the fancyhdr or the titleps packages.

Just answering two out of 5 questions:
1- Check out listings package.
3- check out fancybox ( texdoc fancybox ).
Not the answer you're looking for? Browse other questions tagged header-footer texworks sourcecode exam or ask your own question .
- The Overflow Blog
- How Intuit democratizes AI development across teams through reusability sponsored post
- The nature of simulating nature: A Q&A with IBM Quantum researcher Dr. Jamie...
- Featured on Meta
- We've added a "Necessary cookies only" option to the cookie consent popup
Hot Network Questions
- Why do academics stay as adjuncts for years rather than move around?
- Why does Mister Mxyzptlk need to have a weakness in the comics?
- Rolling cube on an infinite chessboard
- Trying to understand how to get this basic Fourier Series
- Bulk update symbol size units from mm to map units in rule-based symbology
- How to match a specific column position till the end of line?
- Why are all monasteries human?
- Using Kolmogorov complexity to measure difficulty of problems?
- ncdu: What's going on with this second size column?
- Why are physically impossible and logically impossible concepts considered separate in terms of probability?
- OK to delete Windows.db file on PC?
- What is a word for the arcane equivalent of a monastery? A place where magic is studied and practiced?
- Do new devs get fired if they can't solve a certain bug?
- What Is the Difference Between 'Man' And 'Son of Man' in Num 23:19?
- Can airtags be tracked from an iMac desktop, with no iPhone?
- Is there a single-word adjective for "having exceptionally strong moral principles"?
- Linear Algebra - Linear transformation question
- Why is there a voltage on my HDMI and coaxial cables?
- Linear regulator thermal information missing in datasheet
- What sort of strategies would a medieval military use against a fantasy giant?
- Why are Suriname, Belize, and Guinea-Bissau classified as "Small Island Developing States"?
- base table view not found
- Counting Letters in a String
- Acidity of alcohols and basicity of amines
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy .
Assignments
Assignments, also known as homework, are usually given to school or university students to reinforce their knowledge of a subject and aid in learning. They are typically structured in question and answer form to be completed by the student consecutively.
fphw Assignment
This template is for formatting assignments or homework in a clear and simple way. The title section at the top of the first page clearly displays the assignment, student and class information. This information also appears in the headers and footers of subsequent pages. Questions in the assignment are clearly demarcated and appear inside boxes to focus attention. The template features examples of including images, tables, equations and code listings for covering virtually all common assignment information. Multi-part questions and answers are shown for more complex questions.
- View Template Information
Wenneker Assignment
This template can be used by teachers or students for school or university assignments. It contains a clear title section at the start to specify the assignment class, title, date and teacher/student name. The template supports up to 4 levels of sections to structure the assignment into sections, questions, subquestions and bonus content. Examples of common assignment content are included: figure, equations, lists, table, code and paragraphs of text.
Lachaise Assignment
This template is for teachers/instructors/educators to create assignments/homework for their students. It includes a clear title on the first page for the course, assignment and teacher’s name, as well as the institution and date. Sets of questions can be grouped by headings and the template includes examples of unnumbered and numbered sections, and numbered subsections (for longer assignments). Amongst the description text for each question, examples are provided for virtually any subject matter, including: equations, algorithms, code and command line outputs.
Cleese Assignment
This template comes in two versions, one for teachers/instructors/educators to create assignments/homework for their students to fill out by hand, and another for students proficient in LaTeX to answer questions posed to them at school or university/college. Both versions contain simple environments for each question and subquestion within, and allow answer boxes to be created with either an answer or blank for space to write an answer. Sets of questions can be grouped by headings and the template includes examples of including an image, table, equation and code within questions.


LaTeX Templates Information
General enquiries [email protected]
Most templates licensed under CC BY-NC-SA 4.0
LaTeX Templates is developed in New Zealand
© Creodocs Limited. All Rights Reserved.
Instantly share code, notes, and snippets.
dcernst / HWTemplate.tex
bansalgagan commented Sep 4, 2013
Hi, thanks for code! What else can be filled as replacement for \begin{proof}, like \begin{solution} ..etc?
Sorry, something went wrong.
sauln commented Jan 20, 2014
I'm also curious. As a brand new latex user this template is very helpful. But where does the \begin{proof} come from? What is the analogous expression to the exercise and question environment? Thanks
forestwhite commented Aug 31, 2016
I'm new to LaTeX and this got me started ... it is similar to learning HTML from a basic page with some level of detail. Very helpful :)
malachi-ai commented Jan 29, 2021
I'm also new to Latex and Ive been using this example for my homework. Thank you.
dcernst commented Jan 29, 2021
Huh, I missed the questions from 2013 and 2014. Sorry about that. Here are some responses 7 years late. The amsthm (short for AMS Theorem) package (loaded on line 9) provides the opportunity to use \begin{proof}...\end{proof}. Unfortunately, \begin{solution}...\end{solution} is not a thing that loads with any package (that I know of). However, you can "build" this environment as follows. Add the following line of code above \begin{document} but below \usepackage{amsthm,...}:
\newenvironment{solution}{\begin{proof}[Solution]}{\end{proof}}
This will allow you to use \begin{solution}...\end{solution} in your document. It will mimic the look of the output for the proof environment, but it will say " Solution. " instead of " Proof. "
- Spring 2016 - Math 109
- Fall 2015 - Math 10c
- Evaluations for previous courses
Here is where you can download the basic packages needed to Latex as well as installation instructions. I also recommend that you download a nice processing program for your .tex files. TexStudio is my personal favorite, though there are many high quality ones out there.
Here is a gentle introduction to writing in Latex by David Xiao at Princeton. If you plan on using my homework assignment package below, I suggest you skip to section 7.1 in this document where he discusses writing the actual math. Detexify is a website that lets you draw math symbols to find the appropriate latex code. It is a lifesaver.
Here you can download a class file that I wrote for the homework assignments for this class. This file should handle most of the heavy lifting in your document. All you have to do is download the file and keep it in whatever folder you have your assignments in, then download this template . The template .tex file should output this if you have everything installed correctly. Just personalize the header information and you are good to go. As a sidenote, I highly recommend that you write down the problems when you take the time to write up the statement of the problem in your homework because it makes it easy to study your assignemnts later, and it just looks nicer. If you have any questions about Latex, feel free to ask me (or whoever your TA is.)
- CIS 1210 - Data Structures and Algorithms
Written homeworks must include our header with the requisite information filled out in order for them to be graded. Written homeworks must be typeset in LaTeX, and they must be submitted online through Gradescope. Programming homeworks will be submitted through Gradescope as well.
We have a LaTeX homework template, which we will require you to use:
- hw_template.tex
Note: The homework schedule below is tentative and subject to change as the term progresses.
CSE347 eHomework Guide
Evan Chen《陳誼廷》

• CV
Teaching (otis), • for beginners, • problems, • mop, • elmo, • usemo, personal/hobbies, • puzzle hunts, • games, • photos, youtube/twitch, • discord, plz learn code, • filesys concepts, • learning path, • latex style, publications, • egmo book, • napkin (v1.5), • course notes, recommendations, • mentors, • quotes, • faqs, • rec letters.

Return to FAQ Index.
These are FAQs about LaTeX.
Before anything else, I need to define some terms. You can think of LaTeX workflow as having three components:
- A text editor that you type your content into, like gedit, Sublime, Vim, or Emacs. (See tech briefing for details.)
- A LaTeX compiler (aka LaTeX distribution ) that converts the source into a PDF. See question L-10 for recommendations.
- A PDF viewer , the same one you use for normally viewing PDF’s. See question L-12 for recommendations.
What you need to know right now is that these three components are disjoint . Some text editors may let you invoke a compiler directly, and others may be designed specifically for LaTeX editing, but it is a mistake to confuse the editor with the compiler. Any text editor will work with any compiler will work with any PDF viewer.
L-1. I don’t know anything. Where do I start? #
Read Wikibooks , it’s really comprehensive. Also, this tutorial is good too .
See also the example file .
L-2a. What about online suites like Overleaf? #
I think it’s better long-term to install LaTeX on your computer. I realize that people want something that “just works” with no additional effort. But for frequent usage, there are downsides:
- You do not have much control over the editor or viewer.
- You do not have control over package versions, or custom packages (besides manually making a copy of a package each time you need it).
- It’s slower, because you need to do repeated round-trips to an external server for compilation and viewing.
- If you use Asymptote, any errors are silently discarded.
More bluntly, just install LaTeX, you only have to do it once.
Overleaf certainly has its uses; most notably, its strength is collaboration . For example, sometimes I have to work with colleagues that are too incompetent to learn how to use Git . In that case, it’s easier for me to throw an Overleaf at them (and then use the underlying Git myself). Or, sometimes I am stuck on some library computer, making it impossible to install my own software. That does happen.
But I think it’s not good for learning though, see the next question.
L-2b. How do I get X to work on Overleaf? #
First install LaTeX properly, then if it still doesn’t work write to me again. (Usually this fixes the issue because it forces the asker to actually do their homework . 😉)
L-3. Your documents are pretty, can I use your formatting? #
Yes, it’s contained in the style file evan.sty . Attribution is required in source versions only, and not mandated in PDF output (though still appreciated). Check the license that appears.
You should either copy-paste the 600-ish lines of code into a text file, or else click “Raw” and save the file.
L-4. How do I use a custom style file like evan.sty? #
Check Google. Or see Wikibooks . The source itself looks something like:
L-5. How do I get the colored boxes and section headers with evan.sty? #
Pass the sexy option to the package (see source code for more detailed breakdown of options). Colored sections will then happen automatically if you are using scrartcl (rather than article or report ). For the theorem environments in colored boxes, use the provided theorem environments. See examples in FAQ L-9 .
L-6. What package did you use to typeset your CV? #
I use moderncv . You can download the TeX source of my CV (with slight modifications for simplicity; this link is not updated).
L-7. How do you get the LaTeX to auto-compile? #
Use latexmk with the -pvc flag, and a PDF viewer that does not “lock” the PDF file from being written (Adobe reader does not work).
To fit latexmk into the framework we described, it is a “wrapper script” that calls the compiler for you.
L-8. What do you use to typeset geometry diagrams? #
I use Asymptote . It integrates well with LaTeX; for example, here is a document that compiles to a picture of a circle.
However, the setup to make this functional requires some work — there is both a separate installation process for Asymptote, and then a separate compilation process to actually render the figures.
First, one needs to install the Asymptote program itself (this is a separate program from LaTeX). Check the installation instructions .
Once you have Asymptote installed, to integrate it with LaTeX, the compilation workflow requires three steps.
- Run PDFLaTeX on, say, example.tex . This creates example-N.asy for the N’th diagram.
- You need to then run the Asymptote binary on example-N.asy to generate example-N.pdf .
- The diagram example-N.pdf then gets incorporated when you run PDFLaTeX again.
In principle, you can run this three-step process by hand each time you change the diagrams of your figure. This is annoying though, so if you use latexmk you can automate this process by putting the provided subroutine into the latexmkrc configuration file. See the LaTeX usage page for instructions on how to do this.
If you use a web-based compiler like Overleaf, then things may not work so well since you do not have control over the compilation process. As mentioned in L-2 , my recommended solution is to not use web-based compilers.
CJ Quines wrote a really nice Asymptote preprocessor where you can write something like
to get this figure , which makes it much easier to use.
L-9. Can I see some example source code? #
Yes, go to Olympiad page and to download TeX source. (The geometry handouts will have diagrams.) You can also look at Napkin source code .
L-10. Which LaTeX distribution do you recommend? #
- Windows: MikTeX
- Mac: MacTeX
- Linux: TeX Live , almost certainly available from your package manager (e.g. pacman -S texlive-core or apt install texlive )
L-11. Which text editor do you use/recommend? #
I use NeoVim with LaTeX Suite . But that is a pretty advanced setup, so if you are a beginner, it may be overwhelming to learn Vim and LaTeX at the same time.
For now, you may prefer to stick with whatever text editor you are used to. (Note that the editor does not need to be specific to LaTeX, any source code editor will work .)
If you don’t have a source code editor yet because you ignored my advice to learn how to code , then see the FAQ X-6c for some suggestions.
L-12. Which PDF viewer do you use? #
I use Zathura .
Evince and Skim are also good.
L-13. How did you get randomized hint order in your geometry textbook? #
It’s a bit of a hack, but here is demo code corresponding to the version used in my geometry book.
Dennis Chen wrote a more sophisticated version scrambledenvs , available on GitHub as chennisden/scrambledenvs . If you have TeX Live 2021, you can just run tlmgr install scrambledenvs . Otherwise, follow the installation instructions at this GitHub gist .
L-14. How do you live-TeX your notes so quickly? #
The main contributing factors are:
- My typing speed is quite high; sometimes over 750 characters per minute .
- NeoVim (see L-11 ) is fast.
- Several additional custom keyboard shortcuts specifically for TeX, see the vim folder in my dotfiles .
- I have conceal enabled in Vim, so I can read my source code more easily.
- I use latexmk to auto-compile ( L-8 ).
I have been using Vim and LaTeX since I was a teenager, so I am quite proficient with both.
L-15. How did you integrate your problem database with LaTeX? #
I wrote my own database software in Python .
L-16. What’s the best way to learn new things in LaTeX? #
Two things:
- Read the source code of other people;
- Search on Google and tex.SE .
L-17. How can I look up a symbol? #
Use Detexify .
L-18. How can I have space between my paragraphs? #
You can use \setlength{\parskip}{1ex plus 0.5ex minus 0.2ex} . You can also add \setlength{\parindent}{0pt} to suppress indents.
But don’t do this, it looks terrible. Indents are a better way of separating paragraphs.
L-19. What do you use for slideshows (e.g. on Twitch stream)? #
L-20. how do you get latex on wordpress blog #.
I used to use this Python2 script ; later I updated it to Python3 . Not that elegant, but works.
L-21. My code doesn’t work / I want to do X, what should I do? #
Prepare a minimal working example and ask on tex.SE .
L-22. Why do you anti-recommend \dfrac or \displaystyle? #
If your expression is so complicated that it isn’t legible without using \dfrac or \displaystyle , then it should probably be displayed.
L-23. Any common mistakes? #
Thought you’d never ask .
Source repository (git) • Revision history • Suggest edit Updated Tue 27 Dec 2022, 19:05:57 UTC by bd74e75f2584

IMAGES
VIDEO
COMMENTS
There are several distinct differences between silicone and latex rubbers, the primary difference being that latex is a natural product and silicone is man-made. Consumers may choose between silicone and latex versions of several plastic pr...
The rubber tree and many other plants secrete latex as a protection against insects; natural rubber is made from this latex. Vanessa Richins Myers is an experienced horticulturist, garden writer, and educator. She received a Bachelor of Sci...
For a consistently better night of sleep, try a cooling latex pillow that helps support the head and neck. These are the best latex pillows you can buy. A leading-edge research firm focused on digital transformation. When you buy through ou...
A new and revised template for articles, lecture notes and assignments in LaTeX.
What is the best way to embed code (java, R, ...) into my Latex documents? · What document type is best suited for these types of homeworks? · I
This information also appears in the headers and footers of subsequent pages.
The LaTeX file that I used as the base for all my homework in university. - GitHub - jdavis/latex-homework-template: 🎓📄 The LaTeX file that I used as the
LaTeX homework template for Weekly Homework assignments for Dana Ernst's courses. - HWTemplate.tex.
Need easily formatted and good looking math homework? In this video I demonstrate how I write my homework in LaTeX.LaTeX is a text setting
Detexify is a website that lets you draw math symbols to find the appropriate latex code. It is a lifesaver. Step 3: Download my homework assignment class
We have a LaTeX homework template, which we will require you to use:.
Think about framing a \parbox with a \frame{} structure. Exercise 2: Create some horizontal spacing of four headings as below such that the first heading is all
We strongly recommend using LaTeX to prepare your solutions, ... Your assignment document must have a header, which must appear at the top
(Usually this fixes the issue because it forces the asker to actually do their homework. 😉)