Hot answers tagged

12

Centering is easy; the collision is cured by \/. \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{ebgaramond} \newcommand{\oa}[1]{% \/{\ooalign{\textsuperscript{#1}\cr\hidewidth.\hidewidth\cr}}% } \begin{document} M\oa{o} Salazar, Villan\oa{co} al SS\oa{mo} a 8 {\itshape M\oa{o} Salazar, Villan\oa{co} al SS\oa{mo} a 8} \end{...


9

Credit to Joseph at Detect which text "mode" (normal, italic, bold, etc.) is currently in use? for helping to determine if in italic shape. If so, an extra kern is applied to the over-script (relative to the dot below) to make it aesthetically compatible with italic shape. Note that I chose to center the dot under the first letter of the over-...


8

Schemata is a package designed to draw, well, schemata basically. It defines a series of macros to facilitate the drawing and adjustment of this type of diagram. The easiest way to use it is to follow the manual. Create a basic schemata first using only \schema and \schemabox. Then adjust as required from right to left, adding a \smallskip or so between ...


6

As I suggested in my comment, the use of my answer here, Multiple brackets or parentheses with a text inside, can eliminate the squeezed groups noticed by the OP. Plus, it allows item markers as well as variable column width definitions, so that manual line breaking is not necessary (though here, all columns are fixed at 0.6in). EDITED to improve that ...


5

I can offer no flexible solution, but two different ones. The first creates something similar to your original MWE, but with better spacing. I placed everything in minipages to stay uniform, you might want to change that: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{amsmath} \begin{...


5

I couldn't resist to propose a small variant to Steven B. Segletes' solution using a font which has contextual historic S (EBGaramond doesn't, unfortunately), and a centred dot not on the base line. It compiles with xelatex or lualatex.. \documentclass[12pt]{article} \usepackage{stackengine} \usepackage{fontspec} \setmainfont{Sabon Next LT Pro} \...


5

As per Butterick's Practical Typography, it is called apostrophe and it should be curly, like a single closing quote.


4

It's mainly a question of style. I'll give you three different strategies. \documentclass{article} \usepackage{amsmath} \begin{document} First display with \verb|\frac|, in the right hand side the fractions are smaller \[ \frac{H_{W,WDV}}{H_{W,TDW}}= \frac{ \frac{\Delta_{VDW}}{w_{VDW}} }{ \frac{\Delta_{TDW}}{w_{TDW}} } \] and second display with \verb|\...


4

Yes, this can certainly be done. Try the following: \documentclass{article} \thispagestyle{empty} \newlength{\dotcenterwd} \def\dotcenter#1{% \settowidth{\dotcenterwd}{\textsuperscript{#1}}% \hbox to\dotcenterwd{\textsuperscript{#1}}% \kern-\dotcenterwd% \hbox to\dotcenterwd{\hfil.\hfil}% }% \begin{document} \Huge M\dotcenter{o} \textit{M\...


3

This is just my little collaboration. It's not as professional as some examples and the code is far from elegant. So feel free to edit/adapt and improve. First a more traditional style. Many old books have a title page that look similar to this. I'v used tcolorbox and tikz with calligra font just for fancy. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % This ...


3

Since it's an omission, the normal apostrophe ' should be used. First: from '98 to '07 However, some style manuals (such as the Oxford Style Manual) advocates not truncating a year in numerical form.


3

There are some possibilities to achieve this, but all of them require entering into math mode, i.e. with $...$, \(...\), or \[...\] or one of the various math environments such as equation and align. But \ln{x+1} is not producing a pair of parentheses. In fact, it's the same as \ln x+1. \ln is an command without arguments, so \ln stands alone actually and ...


2

Using TikZ, this would be another option (following this answer): \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,decorations.pathreplacing} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \begin{document} \begin{tikzpicture} \hyphenpenalty10000 \node (main) {}; \begin{scope}[node distance=1em, text ...


1

And a fourth display, with the \mfrac (~80 % of \displaystyle) from nccmath. Picking up egreg's example: \documentclass{article} \usepackage{nccmath} \begin{document} First display with \verb|\frac|, in the right hand side the fractions are smaller: \[ \frac{H_{W,WDV}}{H_{W,TDW}}= \frac{ \frac{\Delta_{VDW}}{w_{VDW}} }{ \frac{\Delta_{TDW}}{w_{TDW}} } \]...


1

I usually use TheSansMono condensed for code listing. Otherwise I use Consolas for Mono font. For serif and sans fonts, and math fonts, below are some pairings I use frequently, Minion/Cronos/Minion math Minion/Syntax/Minion math Scala/Scala sans/Minion math Times (Linotype version)/candara/Math time pro 2 Lucida bright/Lucida sans/Lucida math (new OT ...



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