# Tag Info

9

Here's a laundry list of basic practices that are generally recommended. They all follow from the general principle for managing any complex software project: Take steps to keep the components as independent as possible, in their design ("loose coupling") and in their implementation. Protect the TeX namespace. Since TeX has only a single persistent ...

15

Ok, so here's my go: Use LaTeX3. Call texdoc expl3 and texdoc interface3 and read that. This is the first attempt I've seen which tries to take care of interface design for LaTeX on a systematic, wholistic and complete scope. Use LaTeX3. Use LaTeX3. (Note that I don't know by heart what LaTeX3 offers in detail, mainly because I'm not the ...

7

The character maps of T2A and T1 are identical in the first 128 positions. So english texts should work fine with T2A. But if you want to insert umlauts and other accented chars from the upper part of the char table of T1-encoding you should consider to switch to T1 for such texts instead of relying on LaTeX to fall back to the correct definitions.

0

Presumable you are trying to both save on typing, and to exert some consistent notation throughout you article (good idea). If you are making a macro for infinitesimals, you might as well make a marco for a derivative and an integral with limits. Avoid single letter macros e.g. \d because they are often already defined. \documentclass{article} ...

2

Several days ago I taught my students how to plot some functions that are either algebraic or transcendental. As usual I introduced them to PSTricks for the sake of its full support for PostScript language. All functions are expressed in infix form. Some of my students got confused with the algebraic key. They assumed that this key must be enabled via ...

6


10

The \midrule instruction generates a horizontal line that's (i) a bit thinner than either \toprule or \bottomrule and (ii) provides some extra vertical spacing both above and below the rule. As such, a \midrule is best used to separate a table's header row(s) from the body of the table, and a table's body from the footer material (if present, of course). If ...

5

You have asked two separate (interesting) questions. The first is about names. In general, mathematicians prefer generic names ("n", "r", x") while programmers prefer longer, more meaningful ones. In your case I'd go for meaningful. Your second question is about typography. There I think the computer programmer's practice of delayed commitment will serve ...

3


8

The answer depends a bit on what you actually need. If all your formulae are as simple as AgBr or FeO there is no need for any package and you can just type them as they are. If you want some macro for marking the formulae in your source something like \newcommand*\chem[1]{\textup{#1}} would suffice. Or - if you plan to use it in math mode, too - ...

2

\psline[linecolor=green,linewidth=5\pslinewidth]% (0,0|*-1 {\f})(*{#1 .5 gt {.5}{#1} ifelse } {\f})

4

You can use \ifdim to check for double numbers: \ifdim#1pt>.5pt \psline[linecolor=green,linewidth=5\pslinewidth](0,0|*-1 {\f})(0,0|*.5 {\f}) \else \psline[linecolor=green,linewidth=5\pslinewidth](0,0|*-1 {\f})(0,0|*#1 {\f}) \fi If you want to have it very flexible, you need to accumulate all previous function values. First I tried to save with ...

1

Using floating environments (table and figure) in beamer.

0

I was able to avoid subfig completely. Used The Subﬁg Package, "Do You Need This Package?" \begin{figure}% \centering \parbox{1.2in}{...figure code...}% \qquad \begin{minipage}{1.2in}% ...figure code... \end{minipage}% \caption{Here are two figures side-by-side.}% \label{fig:1figs}% \end{figure} Thanks for the info! I'm sure it will be even more useful as ...

9

There are at least three classes that aren't compatible with caption (hence with subcaption), whereas subfig is a substitute when called as \usepackage[caption=false]{subfig} The ws-proc9x6 class (and related ones by the same publisher), see how to get the ws-procs9x6 document class to work with subcaption package? tufte-book and the other similar ...

6

Use no space between terms that are multiplied. So $c=ab$ is the correct way of typing the formula. In case you have $c=a\log b$ TeX takes care of the spacing and automatically inserts a thin space (equivalent to \,): you have to do nothing at all except using the right command (\log for the logarithm). Note that spaces in math formulas are ignored, ...

13

Under normal conditions, using \quad inside or outside \text gives the same result, as far as the amount of space is concerned. I'm disregarding what happens when \text is used in a sub/superscript, for the moment. TeX maintains two current fonts when it's typesetting a math formula: it remembers the font that was current before the formula started and also ...

10

\quad is an hskip of 1em and its definition is the same in math and text mode, however there are many differences between the two uses you give. Notably em is a font dependent unit so the actual size depends on the fonts in use, but perhaps more importantly \text is a box command so the use inside \text is inside a box and will not be discarded at a line ...

6

A counterexample (?) \documentclass{article} \usepackage{amsmath} \begin{document} \noindent $a \text{\quad text\quad} b$\\ $a \quad \text{text} \quad b$ \font\meta=logo10 at 20pt \noindent \meta {$A \text{\quad META\quad} M$\\ $A \quad \text{META} \quad M$} \end{document} This example is not very natural, but shows that the answer is YES, if em's ...

12

In LaTeX, the definition of the macro \quad (stated in latex.ltx) is: \def\quad{\hskip1em\relax} Note that the macro works the same way in both text and math mode. (The macros \hskip and \relax are TeX "primitive" commands.) Thus, as long as 1em has the same value in text and math mode -- which will be the case if you're using a common font family and ...

5

Instead of using \left( and \right) to auto-size the outermost set of parentheses, you could use \biggl( and \biggr): (Aside: See the postings Why the control sequences \bigl, \biggl, \bigr or \biggr, as I can always use \big or \bigg? and Difference between \big[ and \bigl[ for a discussion of the differences between \Bigg( and \Biggl(.) I would ...

Top 50 recent answers are included