# Tag Info

19

That paper does look decent, and a lot better than most other science papers produced in *TeX (, InDesign or whatever application). @David: I don't think that Sedgewick's choosing InDesign is a major factor in the overall look of this particular document: pretty much all of what he does can be done in TeX (and some of it done better). However, some of his ...

10

As has been suggested in the comments: what you're getting as the output of an \& with your current font (Computer Modern) is simply one of many renditions of the symbol called an ampersand. Traditionally, type designers have always taken a lot more liberties with that glyph than with, say, a plain a. That's been a custom for several centuries, which is ...

9

I use the listings package, with the sh language. You can then say e.g. \lstinline!for i in $(seq 0 10); do echo "Now$i"; done! inline and get it (reasonably) typeset. Or include complete scripts, with the same typography. Other "typeset programs" packages might be useful too, I'm just used to listings. Rummage around in CTAN.

8

Don't use capitals in this case. Quoting Hedrick, Fine Points of Typographic Usage: What do you do if a sentence starts with an acronym, e.g. "RUCS is great." If you're using small caps, I would set RUCS in small caps. Some people are bothered because this seems to violate the rule about capitalizing the first word. To understand my answer, ...

8

Any ideas, please? not the kind of answer you may be looking for, but: an idea -- of what the result may look like when 3-or-less-letter-words are prevented from finishing a line. \documentclass[DIV=12,12pt,paper=a5,pagesize]{scrartcl} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{tgtermes} \frenchspacing ...

7

One way of doing it in the article class (which is used in the template you link to) is by inserting the following lines in your preamble: \makeatletter \def\mycopyright#1{% \protected@xdef \@thanks {\@thanks \protect \footnotetext [\the \c@footnote ]{#1}}% \protected@xdef \@bs@thanks {\@bs@thanks \protect \footnotetext [\the \c@footnote ]{#1}} } ...

6

(Note: After my answer, the OP specified that a pdfLaTeX solution is wanted.) Xe(La)TeX offers the FakeBold font feature -- meant for "rare situations [when] users may want to mechanically distort the shapes of the glyphs in the current font" (fontspec manual, section 10.13). Use at your own risk. ;-) % !TEX TS-program = XeLaTeX ...

5

No vertical rules and no vertical words. The column of inputs can be topped by the word "Input" and the output columns can be easily grouped. I suggest two possibilities. \documentclass{article} \usepackage{booktabs} \begin{document} \begin{tabular}{l*{6}{c}} \toprule & \multicolumn{6}{c}{Output} \\ \cmidrule(lr){2-7} Input & int8\_t & ...

5

Not a problem yet as your entries are smaller than textheight but you have a word space to either side of the table due to missing % here \rotatebox{90}{% and here \end{tabular}% It seems to be intentional but I think the first heading looks odd offset 1em to the left as all the other headings are flush left with their respective cells. Probably you ...

4

\newcommand*{\mimo}[2]{\mbox{\ensuremath{\mathrm{#1\,\times\,#2}}}} the \mbox means that you are definitely not in math mode so the tests that \ensuremath do to get into math mode are redundant. If you keep the \mbox you could just use $..$. Putting the code in a box does have the disadvantage that the space around the \times is frozen to its natural ...

4

Maybe the following is what you're after: I raised the 3 quite a bit and slightly moved it to the left; this way I could move the x much closer to the d. Here's the code for a command \d that takes one optional and one mandatory argument: \documentclass{article} \usepackage{calc} \renewcommand*\d[2][]{% \mathrm{d}% \ifx\relax#1\relax\else ...

4

How can I put this information to LuaLaTeX, LaTeX etc.? I'm afraid the answer is: you can't, or maybe you can't unless someone comes up with something really trippy. If I understand correctly (feel free to tell us more), what you have in mind is, essentially, the method employed by Johannes Gutenberg. His founts, like yours, had several versions of the ...

4

Using the keystroke package seems to be the way forward. Code \documentclass{article} \usepackage{keystroke} \begin{document} \Esc \end{document} Output

3

First of all, as I suggested in my comment, I would rather have the \midrule one row below: I think grouping 'Output' with the headers makes more sense, logically, just as you did with 'Input'. As an alternative to the slashbox package there is diagbox. The description in the documentation states: diagbox is a modern alternative of slashbox. I also ...

2

use a tabularx: \documentclass{article} \usepackage{tabularx,booktabs} \usepackage{graphicx,ragged2e} \usepackage[table]{xcolor} \renewcommand\tabularxcolumn[1]{>{\RaggedRight}p{#1}} \begin{document} \noindent {\setlength\extrarowheight{5pt} \begin{tabularx}{\textwidth}{@{} *5X @{}}\toprule heading 1 & heading 2 & heading 4 & heading 4 ...

2

If you are referring to the Conjugate transpose, then the following is what you're after - a standard \overline: \documentclass{article} \let\conjugatet\overline \begin{document} $(\mathbf{A}^*)_{ij} = \conjugatet{\mathbf{A}_{ij}}$ \end{document} Following the guideline in Consistent typography, I've defined \conjugatet to be equivalent to ...

2

As an alternative to Joseph's suggestion, mhchem, there is also the chemmacros package with a very similar command. It also provides some shortcuts (to be used both in text mode and math mode) for some common particle symbols and allows you to define your own, too. chemmacros' tries to follow IUPAC's recommendations which also recommend upright letters for ...

1

I don't think there is a unique proper way of doing this. There is the operator $\min$ which might be appropriate here. In order to define your own operators, consider using \DeclareMathOperator{\Minimum}{Minimum} from amsmath to be able to use $\Minimum U_\mathrm{res}$. Using the operator will give you suitable spacing around the operator, just as you ...

Only top voted, non community-wiki answers of a minimum length are eligible