# Tag Info

2

It's a parbox and boxes never break however to avoid spurious white space you are missing one % at the end of the penultimate line. \newcommand{\totalpoints}{% \parbox{\linewidth}{% \leavevmode\raisebox{-0.5ex}{\llap{\textbullet}}\!\hrulefill\\[-0.825ex]% \null\hfill\bfseries Total Points: \total{totalpoints}~~\rlap{\rule{0.4pt}{3ex}}% }% } ...

5

Actually, I don't find this necessary, but what about \let\bookfi\fi to make it more 'outstanding'? \documentclass{article} \newif\ifbook \let\bookfi\fi \booktrue \begin{document} \ifbook Yay! \else Nope \bookfi \bookfalse \ifbook Yay! \else Nope \bookfi \end{document}

3

Try to use as less package dependent macros as possible, and organize your general purpose ones in a small file. You may have a look at Paul Isambert's TeXapi and YaX packages, which may provide you with an interface to write format independent macros; they are used by his lecturer and navigator packages, which can run on Plain, LaTeX and ConTeXt. Skip. ...

3

This is the ifa.tex file from the .zip file provided here ( http://www.acta-acustica-united-with-acustica.com/uploads/media/LaTeX_source_files.zip) Using \"u works here, as well as typing ü with \usepackage[utf8]{inputenc}. % Instructions for Authors fuer Acta Acustica \documentclass[twoside,twocolumn]{article} \usepackage{acta} ...

1

To answer your question 4 about fonts, you can get a good list of Type 1 math fonts usable by PDFLaTeX, with samples, at the LaTeX Font Catalogue. I personally like \usepackage[osf,slantedGreek]{mathpazo} This gives you an attractive Palatino clone with excellent coverage. You can combine it with other math symbol packages, such as amssymb, boondox and ...

9

multi-question questions don't really fit the site format but.. Do you think that it is Ok to recommend the mathtools package instead of amsmath package. The mathtools package calls the amsmath package and improves it as far as I understand. Yes What about the empheq package It's OK but more of a "contrib" package than mathtools which aims to ...

9

So I got into the whole idea of learning plain TeX OK, welcome:) 1. What is good practice for package writing? Typically, plain TeX users don't use packages from third side. They started with fixed point which is plain.tex file and do own macros. But there is a problem about "reinventing wheel". For example they must do own macros for table of contents, ...

32

Technically using plain tex is not an option, plain is the format produced by inputting the file plain.tex into initex and that file is not used in LaTeX at all. It is however true that many of the commands that are defined in plain TeX have commands of the same name defined in LaTeX, and in some of those cases, the definitions are the same. The commands ...

4

It's quite strange that every beginner's guide to LaTeX tells as soon as possible that paragraphs should be separated from each other by a blank line but several people use \\ to finish up a paragraph. It's possible that the influence of word processors governs the choice of those who use \\. The path seems to be like If I hit Return in the editor ...

7

The title of the question is wrong if one look at the example given in the question. On could discuss semantical markup by comparing \emph with \textit, but not for \emph versus \mathit. This is misusing mathmode to output something that should be written in textmode and will give a wrong output in quite a number of cases. It is like writing l when one want ...

8

So there's this idea of logical structure, so you set up structures like: a quote, a section head, something emphasised, the title of a work, and so on and so forth. And then, rather than decorating your text as you go, with italicisation, emboldening, enlarging, centering, and so on and so forth, you say: this is a quote, this is a section head, etc. etc. ...

19

I would define some macros to handle the parts of the code that don't change. Here's an example of something you can do: \documentclass{article} \usepackage{amsmath,amssymb} \makeatletter %% user macro translated into internal control sequence %% to test whether short or long form. \newcommand\intU{\ae@intU} %% short form is flagged by a * ...

6

You tagged the question as best-practices, so first I'll tell you what's the best practice: always treat math symbols as math So the definition should be \newcommand{\rsim}{\overset{r}{\sim}} to be used like We will use the symbol $\rsim$ to denote a very useful equivalence relation, namely $a\rsim b$ if and only if $a$ and $b$ are equally ...

6

No there isn't and can't. Because of TeX's in-place replacement parsing, it is not possible to analyze the code without fully expanding everything and still then it wouldn't be possible to know what is what. Note that PEP8 is also an agreement of (a small part of) the community not an essential property of Python. And the tools you mentioned follow the ...

4

Honestly, your definition of .5\baselineskip is exactly the length of \medskip, which is equivalent to \vspace{\medskipamount}. If we show these values we get: \verb!\baselineskip =! \the\baselineskip \verb! \medskip =! \the\medskipamount So if we define a new length of that size, it'll look like \medskip. Of course, the major difference would be ...

9

It's probably bad practice, although hard to say with no context. Firstly \\ does not end the paragraph. If your narrative reaches a point where a large visual break is needed then a paragraph break would seem more natural. If all paragraph breaks need the same visual skip then there is nothing more to do, but if this is a special break then using blah ...

Top 50 recent answers are included