### LaTeX users online

In total there are**14**users online :: 0 registered, 0 hidden and 14 guests (based on users active over the past 5 minutes)

Most users ever online was

**1327**on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 14 guests

### LaTeX blog world

Index I: Anlegen und Verarbeiten (Tobi)How to Ask for LaTeX-related Help Effectively (Lian Tze)

Many variants of a Beamer presentation - part I (Marcin)

Speaker Meeting 2016 (Joseph)

LaTeX and music (Clemens)

Adding references from an external file (Tom)

Exporting from LyX to MS Word and LibreOffice (Stefan)

Booklets erzeugen (Tobi)

AltaCV, yet another LaTeX CV/Résumé class (Lian Tze)

TeXdoc.net updated (Stefan)

TUG 2016 reports (Norbert)

TUG 2016 in Toronto - Arriving and first excursion (Stefan)

Define new macros for logical markup (Tobi)

Finding typefaces (fonts) (Tobi)

Order of float placement parameters (Tobi)

Changes and News (Clemens)

Querverweise (Tobi)

What's new in chemmacros v5.6? (Clemens)

## Enforcing lining Figures for Math Mode and Tables## LaTeX Forum: Text Formattingcfr-lm • math-mode • numerals • tables •Add tags
3 posts
• Page
1 of 1
Hi!
I use cfr-lm to get oldstyle figures for regular text but they look bad in tables. Of course I could switch to lining figures manually ( `\lstyle` or `\textl` ) every single time but this is quite tedious. Also, lining figures are used automatically in math mode. Is there a way to enforce lining figures in tables too?MWE: - Code: Select all • Open in online LaTeX editor
`\documentclass{article}` \usepackage[% rm={oldstyle,proportional},% sf={oldstyle,proportional},% tt={oldstyle=false,proportional=false,monowidth}% ] {cfr-lm} \begin{document} Old style numerals (0123456789) look great in normal text, but sometimes lining figures (\textl{0123456789}) are more appropriate. For example in mathematical contexts, old style is just out of place ($123 + 456 \neq 789$). In tables, too, old style figures look bad: \begin{tabular}{l|r} Name & Age \\ \hline A & 12 \\ B & 23 \\ C & 64 \\ D & 67 \end{tabular} Lining figures are much better, but have to be set manually: { \lstyle \begin{tabular}{l|r} Name & Age \\ \hline A & 12 \\ B & 23 \\ C & 64 \\ D & 67 \end{tabular} } \end{document}
- Bob_the_Topper
**Posts:**15**Joined:**Thu May 3rd, 2012
You could use etoolbox to add lining figures to the
`{tabular}` environment by adding these lines to your preamble:- Code: Select all • Open in online LaTeX editor
`\usepackage{etoolbox}` \AtBeginEnvironment{tabular}{\lstyle}
Regards -
cgnieder - Site Moderator
**Posts:**1936**Joined:**Sat Apr 16th, 2011**Location:**Germany
3 posts
• Page
1 of 1
## Topic Tagscfr-lm • math-mode • numerals • tables## LaTeX users onlineUsers browsing this forum: No registered users and 14 guests |