# Tag Info

5

I'm quite fond of menukeys, and I think you should still consider using it. Unfortunately, menukeys currently doesn't provide its users a way of customising the output path separator (the "weird arrow" you're referring to). However, I'm sure Tobias "Tobi" Weh (the author of menukeys) would add that feature in a future release if he sees this question. In ...

8

You could load the package url with the option obeyspaces and encase the fully qualified file name in a \url instruction: \documentclass{article} \usepackage[obeyspaces]{url} \begin{document} \url{C:\Program Files\Some program\bin\executable.exe} \end{document} Addendum: If you need or wish to allow line breaks at the spaces, choose the spaces option as ...

1

I've used JabRef for a long time, then the comment from Joseph above applies, just use standard tools. Recently, I switched to Mendeley, which takes care of my bibliography now. It's both multi-platform and makes it easy to import publications from the web. Several installations on different machine sync their library automatically and also automatically ...

8

Definitely you should use math, $x$ or for multi-letter identifiers $\mathit{foo}$ even if as appears to be the case here the fonts are virtual fonts using the same glyphs, they are, to LaTeX different fonts with different encodings and metrics. Even if the letters you are using happen to have the same metrics, the document is then very fragile and will do ...

1

Somewhere (that I frustratingly now can't find!) I read that ISO (or a similar standards group) recommends (mandates?) for physics to write slanted (i.e., math italics or similar) for variables, and use upright (i.e., math roman) for constants, specifically for mathematical constants. So the exponential function is $\mathrm{e}^x$, the speed of light is ...

5

If you look at this link, you will understand that placing a math chararacter is different from placing in italic letter, because the metrics are different: one has to take into account that a letter may have an exponent or an index, for instance, so that the sidebearings are different. Actually, when TeX uses 7 parameters for a text font, a math font ...

3

Use something like emacs+auxtex. It's got a keyboard shortcut for formatting paragraphs, regions and sections, i.e., it does nice line breaks and indenting.

3

Third way is my personal preference. It is helpful for diffs and if you use a repository to keep track of your code. Then let your editor soft wrap long sentences.

3

I use an editor with word wrap on. If you're using Windows, Notepad++ is great. In Linux there are many great editors, but even gedit automatically wraps lines. If you're using Eclipse, its soft-wrap feature is kinda buggy and I never really found it very well suited to Latex editing, but it's still better than hard-wrapping, because as you said, you have to ...

9

For the sake of the exercise, here is a method without assignments. Don't expect miracles though, it should be fine when testing strings of letters and digits, however spaces will give false positives. This is a first sketch, I use xinttools as I am familiar with it. Some explanations added. \documentclass{article} \usepackage{xinttools} \makeatletter % ...

18

\in@{\foo}{\cslist} If you don't need pure expansion and can afford an assignment, that can simplify things \def\tmp{\expandafter\in@\expandafter{\foo}} \expandafter\tmp\expandafter{\cslist} only needs four \expandafter

19


28

\in@{\foo}{\cslist} % <--- What combination of \expandafter is needed here? If \foo is first expanded, then we have the problem, that \expandafter cannot jump over serveral tokens at once, also the number of tokens is not known. Therefore the latest token is expanded first. But at this stage we cannot add the \expandafter, because we have to insert the ...

3

polynoms for polynomial handling Advantages: Horner Scheme typesetting automatic factorisation long division-typesetting

2

examdoc for typesetting exams. Advantages: automatic handling of points Question and solution are combined, what makes it easier to copy-paste new exams.

6

Here are some reasons or considerations: From a programming point of view, structure promotes good practice. As such, document style/structure is typically performed within the document preamble (between \documentclass and \begin{document}), while document content follows within the document environment. Some commands are defined to be used only within the ...

5

You can easily do something as simple as \newcommand\printmyaddress{% \begingroup \parindent 0pt \myname \par \myuniversity \par \mydepartment \par \myaddress \par \myemail \par \endgroup} and then set those macros accordingly. Put it in a .sty file and you'd be good enough to go (assuming the formatting is done as you like it). Maybe ...

3


7

I agree with @tohecz that this is a bit of a scattered question, but I'll try to answer each individual part and bring it all together. The highlight of everything that follows: With LaTeX (and TeX systems in general), it's essential to realize that even though TeX is processing your document and LaTeX has defined a format you should try and stick to, ...

0

FWIW, I often recommend to new users (like myself) that they try to export their OpenOffice files to LaTeX and then process them in LaTeX just to see the difference. Many converts have thus been won. In a way your question asks, "how I can get better at LaTeX?" and for that you should read the various manuals that are out there; as many as you can. The ...

2

Regarding bold, the best practice is to use the \textbf{bold text} commnad. As the link you provided says, the \bf command is deprecated. Now, for italicized text the best practice is to use \textit{italicized text}, which is the equivalent of the previous command. The \emph command you are using is intended for emphasizing, as some commenters have posted. ...

5

There are two main differences I see between text processors and LaTeX: TeX is a typesetting system. LaTeX is about ridding you of the burden of trying to do page and paragraph layout. Layouting was done for you by people who really know this stuff. This is the main reason why Word documents look so ugly: many authors fiddle with the layout settings ...

20

An easy way is to look for the definition of \fmtversion in latex.ltx, e.g. (bash): $grep edef.fmtversion$(kpsewhich latex.ltx) \edef\fmtversion{2011/06/27} Alternatively (see egreg's comment), you can use: $texdef -t latex fmtversion \fmtversion: macro:->2011/06/27 Or latex can directly be asked:$ latex '\typeout{\fmtversion}\stop' | grep ...

2

I use an editor (Sublime Text) where I can make snippets to expand into for instance floats (figures, tables) with my preferred setup. For instance, typing "fig" and hitting tab expands to the following \begin{figure}[htbp] \centering \includegraphics[width=0.95\textwidth]{} \caption{caption} \label{fig:label} \end{figure} This way I ...

2

I hold this question rather as a style question. If you have some figures with equal or similar legends, I would group them on one page and have a common legend for those figures. That was the way I organized such kind of figures in my thesis.

Top 50 recent answers are included