tags:

views:

81

answers:

3

Hi all,

I'm interested in writing a formula sheet for an upcoming exam in Physics. I want to create something similar to this. I have the sources, however, I can't understand what's going on over there, and I can't seem to render it using LyX. I have used LyX for quite a while and used some ERT (TeX code) now and again, but I am by no means a LaTeX expert. I have no problem writing some LaTeX code if needed (and I'm pretty sure it'll be needed), but if you suggest it, please explain the code. Also, I do want the main editing of formulas, etc. to be done in LyX.

Any suggestions?

A: 

There is a built in formula editor with Word 2007 and I think there was a free Microsoft plugin for Word 2003 as well. Would probably be easier to use than rolling your own LaTeX solution.

Peter Hanneman
-1. It's like responding to a C++ question with "use Java instead".
Amir Rachum
If you are a student it would be logical that you have access to the Office suite which would provide you with the desired results in the fastest and easiest means possible.
Peter Hanneman
I am a student and I have access to word. I don't want to use it. I like LyX.
Amir Rachum
+0, while it is a solution (and hence I didn't mark you down), the equation editor is rather unwieldy to use. I have used it in the past to typeset equations. But, the control over placement is limited, and typesetting anything complex is extremely time consuming and frustrating. It is easier and less error prone to use LaTeX, or its equivalents.
rcollyer
It's not a solution. The question wasn't "What is the best way to write a formula sheet?", it was "How to write a formula sheet in LyX".
Amir Rachum
Well, please keep the answer to LaTeX and not to Word. A user of LaTeX will most likely not want to switch to Word especially when writing a "cheat" document full of equations.
yCalleecharan
+1  A: 

That is TeX, not LaTeX. TeX is a more basic language that LaTeX, which is a macro system sitting on top of TeX. You would have to learn that, e.g. through one of the books at http://www.macrotex.net/texbooks/ (look for TeX, not LaTeX).

On the other hand, it would not be too difficult to roll your own from scratch in LaTeX (or LyX). For a cheat sheet, you would likely want the geometry package for using the whole sheet area. Other than that, I think that a big table with formulae should be rather easy to put together.

Svante
+1  A: 

This document is a little hard to understand because it is split up into so many files. The most important points are the makefile and macros.tex, which renames some of the basic commands.

The main construct used is the tabular environment. This is a useful resource with some simple examples of how to construct various tables. The "Spanning in both directions simultaneously" subsection of the multirow/column discussion deserves close attention, as a lot of the behavior is fussy and nonobvious. (Multicolumn and multirow should always be used in that order, reversing them can cause baffling display bugs). This is used in a few places in the sample document where it is not always immediately obvious from the pdf.

The same wiki also explains most of the mathematical notation used in your example cheat sheet. In brief, math-formatted sections are delimited by $s or \[ and \] and most of the basic math expressions have sensible syntax.

If you want to incorporate images into your cheat sheet, you may want to look into EPS. Although LaTeX does support other formats, they are less convenient.

Do you have any specific questions? In general, I would recommend reading through the wiki to get a general understanding of the language, look up any commands prefaced with a \ that you don't understand, and look in the macro definitions if you can't find any information online about them.

Larry Wang