• About
    • Cookie Policy
  • Code Snippets
    • Beamer (presentation)
    • Figures
    • Lists
    • Standard classes
    • Tables
  • Consulting
  • LaTeX Installation
  • Posting Questions
  • TeX/LaTeX Resources

texblog

because LaTeX matters

code

Generating dummy text/blindtext with LaTeX for testing

26. February 2011 by tom 9 Comments

I was often using any of the available “lorem ipsum” generators on the web while testing different things in LaTeX until I discovered that the Latex distribution provides packages generating blind text, which is definitely more convenient. With just a few lines of code, these packages will generate paragraphes, even whole documents with sections, paragraphs … [Read more…]

Share this:

  • Twitter
  • Facebook
  • Reddit
  • LinkedIn
  • Skype
  • Email

Like this:

Like Loading...
Posted in: Introduction, LaTeX, math, Package, Tips & tricks Tagged: babel, blinddescription, blinddocument, blindenumerate, blinditemize, blindlist, blindmathfalse, blindmathtrue, blindtext, code, description, dummy text, enumerate, itemize, LaTeX, lipsum, list, math, text, usepackage

Check syntax only, save time typesetting!

2. February 2011 by tom 4 Comments

Working on a large document? Producing output can take quite some time, but with the following tricks you can save some of it… Add the following two lines to your preamble and Latex will not produce any output pages, while still checking that your syntax is correct and working. Just comment out the second line … [Read more…]

Share this:

  • Twitter
  • Facebook
  • Reddit
  • LinkedIn
  • Skype
  • Email

Like this:

Like Loading...
Posted in: Introduction, LaTeX, Package, Tips & tricks Tagged: code, LaTeX, preamble, syntaxonly, syntonly, typeset, usepackage

Include source code in Latex with “Listings”

2. April 2008 by tom 58 Comments

 First include the “listings”-package into your document: \usepackage{listings} Basics Now you have basically two possibilities. Either you type/copy your source code directly into the Latex document: \begin{lstlisting} place your source code here \end{lstlisting} The other possibility is to directly include the source file: \lstinputlisting{filename.java} This is particularly useful if you are still editing your source … [Read more…]

Share this:

  • Twitter
  • Facebook
  • Reddit
  • LinkedIn
  • Skype
  • Email

Like this:

Like Loading...
Posted in: Introduction, LaTeX, Package Tagged: code, LaTeX, listings

Placing figures/tables side-by-side (\minipage)

1. August 2007 by tom 114 Comments

Including images in a report is very common in LaTeX. Structuring your work nicely is probably the most obvious reason why you want to put two figures/tables side-by-side. Another reason might be to save space, wherever a smaller size of an image is sufficient. The following code can be used to place two figures side-by-side … [Read more…]

Share this:

  • Twitter
  • Facebook
  • Reddit
  • LinkedIn
  • Skype
  • Email

Like this:

Like Loading...
Posted in: Figure & table, LaTeX, Tips & tricks Tagged: article, book, code, figure, LaTeX, minipage, report, table, tabular

Formatting code in LaTex (tabbing, verbatim)

11. July 2007 by tom 9 Comments

Formatting code in LaTex is as astonishingly easy, once one knows how to do it. There is a command “tabbing”, which is used in the same way as for example “centering”, except that one has to tell the computer where to set a tab. \begin{tabbing} if \= (condition) \{ \\ % inserts a tab just … [Read more…]

Share this:

  • Twitter
  • Facebook
  • Reddit
  • LinkedIn
  • Skype
  • Email

Like this:

Like Loading...
Posted in: Introduction, LaTeX, Tips & tricks Tagged: code, LaTeX, tabbing, verbatim
« Previous 1 2




Join 6,531 other subscribers

Consulting

Need help with your thesis or book project? Let’s discuss.

doi2bib




Top Posts & Pages

  • Changing the font size in LaTeX
  • Multi-column and multi-row cells in LaTeX tables
  • Control the width of table columns (tabular) in LaTeX
  • Normal text in math mode
  • Lists: Enumerate, itemize, description and how to change them

Tags

addcontentsline array article bibliography Bibtex & biblatex book caption chapter citation cite code color definecolor description documentclass draft enumerate equation fancyhdr figure graphicx hyperref includegraphics item itemize label landscape LaTeX letter listoffigures listoftables math minipage reference renewcommand report section subfigure table tableofcontent tabular text TikZ usepackage xcolor

Copyright © 2021 texblog.

Omega Child WordPress Theme by ThemeHall

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.
%d bloggers like this:
    This site uses cookies: Find out more.