xetex - I am new to TeX. Should I use LaTeX, XeLaTeX, ... How can I change the margins in LaTeX? - IS&T Contributions - Hermes On this page: Overview LaTeX's margins are, by default, 1.5 inches wide on 12pt documents, 1.75 inches wide on 11pt documents, and 1.875 inches wide on 10pt documents. geometry The geometry package is very powerful, but can also be complicated to use. \usepackage[margin=0.5in]{geometry} That will give your document a half-inch margin on all sides. For more information on all that the geometry package can do, please see the "geometry.pdf" file included with the distribution. Changing margins by hand If you want to change your margins to something else, you can change the values yourself. \addtolength{\oddsidemargin}{-.875in} \addtolength{\evensidemargin}{-.875in} \addtolength{\textwidth}{1.75in} \addtolength{\topmargin}{-.875in} \addtolength{\textheight}{1.75in} These commands would be placed in the preamble of your document (prior to \begin{document}). The \oddsidemargin and the \evensidemargin are both changed because LaTeX has two side margins, one for odd pages and one for even pages.

Night Walker: Latex: \headheight is too small You never know what you will meet when you use Latex, luckily, we can search Google or Yahoo to find the answer. However, it cannot help all the times. There is a problem you may come across using package fancyhdr: Package Fancyhdr Warning: \headheight is too small (12.0pt):Make it at least 14.49998pt.We now make it that large for the rest of the document. It was not easy to find the answer via either Google or Yahoo. Here is the solution. \setlength{\headheight}{15pt} in the preamble, i.e. before \begin{document}.Tips: \headheight defines the height of the header.

CDGuide --- J.S. Milne Mathematicians have been using diagrams of objects and arrows to explain their work since at least 1945.1 Conventionally, these are called commutative diagrams (even when they don't commute2). When publishers first began using TeX, commutative diagrams caused them problems --- I remember being asked by one publisher to turn a commutative triangle into a square by the addition of an equals sign. Fortunately, there are now several very capable packages for producing commutative diagrams. Despite their wide use by mathematicians and others, these packages are barely mentioned in the usual books on TeX. In this guide, I show by means of examples what each package can do, and I provide enough information for you to begin using them. To view the description of a package, click on the link at left. Except where noted, each package is included in the standard MikTeX installation and can be used without restriction. Summary DCPic is a versatile package based on the graphical engine pictexwd.

BibTeX: How to cite a website With the increasing importance of the internet for scientific research, need increases for properly citing online resources. Unfortunately, when the main LaTeX citation machinery BibTeX was created, this was not to be foreseen; this is why there is to date no canonical way to cite, say, a website. Different workarounds have emerged, using for example some trickery with the @MISC type (see below), but the right way™ hasn't been found yet. This could change with the advent of biblatex. Its new entry type @ONLINE is supposed to contain references to web resources and doesn't give room for confusion anymore. and the LaTeX file\documentclass{article} \usepackage{biblatex}\bibliography{test.bib} \title{BibTeX Website citatations with the \textsf{biblatex}~package}\date{} \begin{document} \end{document} one gets a nicely typeset list of references. Note that there are plenty of more options and entry types in the biblatex package, such as (the currently unused) @AUDIO and @VIDEO. \usepackage{url} and

How to include MATLAB code in LaTeX documents IN Tips & Tricks Many packages exist that allow you to include source code of different programming languages into LaTeX document. The most popular once are probably listings and fancyvrb. However, due to their aim for being as general as possible, including MATLAB source code with the right color and markup can be tedious task. Set up Download mcode.sty by clicking this link to the MATLAB Central File Exchange. Now, put the mcode.sty file in the same folder as the (master) .tex file you’re compiling. Some options could be added between the square brackets: bw: For black and white printing (highlighting will be done based on grayscale)numbered: For numbered linesframed: Puts a frame around each piece of codefinal: This one is for the case where the draft option is enable in the documentclass. Note that the mcode package is based on the listings package (it just includes some predefined setup such that the markup and color is according to the MALTAB standard). Usage

bibtex - URL of cited web site in bibliography Theorem Environments Theorem Environments In LaTeX, one can create `environments' for statements of theorems, lemmas, propositions, corollaries, etc., and also for proofs, definitions, examples and remarks. These can be established using appropriate \newtheorem and \newenvironment commands: these commands are best included in the LaTeX input file before \begin{document}. The following code will create theorem, lemma, proposition, corollary, proof, definition, example and remark environments, together with a control sequence \qed which produces `tombstones' for the ends of proofs: (For an explanation of the syntax of the LaTeX commands used to define the above environments, consult the LaTeX User's Guide and Reference Manual by Leslie Lamport.) The statement of any theorem can then be enclosed between \begin{theorem} and \end{theorem}. The environments and commands introduced above are used in typesetting the following text: This text is typeset from the following LaTeX input:

Detexify LaTeX handwritten symbol recognition Want a Mac app? Lucky you. The Mac app is finally stable enough. See how it works on Vimeo. Download the latest version here. Restriction: In addition to the LaTeX command the unlicensed version will copy a reminder to purchase a license to the clipboard when you select a symbol. You can purchase a license here: Buy Detexify for Mac If you need help contact mail@danielkirs.ch. What is this? Anyone who works with LaTeX knows how time-consuming it can be to find a symbol in symbols-a4.pdf that you just can't memorize. How do I use it? Just draw the symbol you are looking for into the square area above and look what happens! My symbol isn't found! The symbol may not be trained enough or it is not yet in the list of supported symbols. I like this. You could spare some time training Detexify. The backend server is running on Digital Ocean (referral link) so you can also reduce my hosting costs by using that referral link. Why should I donate? Hosting of detexify costs some money. No. Yes.

Defining operators like sin, log etc Latest Forum Posts LaTeX table of contents, list of figures/tables and some customizations | texblog I wrote a somewhat short post on list of figures and list of tables a few years ago. Nevertheless, it gets quite a bit of traffic, possibly due to the large number of comments. For that reason, I decided to put together another, more informative post on the same topic that includes table of contents. I use the following common abbreviations throughout the post: toc: table of contentslof: list of figureslot: list of tables Topics Creating content lists, the basic commands Creating content lists in LaTeX documents is straight forward. Depending on the document-class employed, page-breaks are added between toc, lof, and lot. Controlling the depth of content added to toc Depending on the size of your document (length of chapters, sections, etc.), you might want to increase or decrease the level of headings added to toc. In the following example all headings are added to toc (level: 5): Adding lof/lot to toc Lists of figures and tables are not automatically added to the table of contents. Related

Cross-referencing between different files Side-by-side content in beamer presentations « LaTeX Matters There are two ways (and possibly more) to place content side-by-side in a beamer presentation, the columns and the minipage environments. The first is a beamer-specific environment and is therefore only available in a beamer presentation. Whereas the latter has other applications and is available in all document-classes. General considerations In any LaTeX document, there is a predefined width available for text, \textwidth. The columns environment The columns environment is only available in the beamer document-class and might therefore be lesser known. Basic command structure: And here is a complete minimal working example: The minipage environment I wrote an article on the minipage environment quite some time ago. The command is used as follows: Below is a complete minimal working example: Final note Even though there are differences, I don’t know of any advantage of one method over the other when placing content side-by-side. Like this: Like Loading...

Top four LaTeX mistakes Here are four of the most common typesetting errors I see in books and articles created with LaTeX. 1) Quotes Quotation marks in LaTeX files begin with two back ticks, ``, and end with two single quotes, ''. The first “Yes” was written as ``Yes.'' in LaTeX while the one with the backward opening quote was written as "Yes." 2) Differentials Differentials, most commonly the dx at the end of an integer, should have a little space separating them from other elements. The first integral was written as \int_0^1 f(x) \, dx while the second forgot the , and was written as \int_0^1 f(x) dx The need for a little extra space around differentials becomes more obvious in multiple integrals. The first was written as dx , dy = r , dr \, d\theta while the second was written as dx dy = r dr d\theta 3) Multi-letter function names The LaTeX commands for typesetting functions like sin, cos, log, max, etc. begin with a backslash. The first example above was written as \log e^x = x and the second as log e^x = x Related posts: