# Tag Info

4

\documentclass{article} \usepackage{hyperref} \usepackage{siunitx} \AtBeginDocument {\pdfstringdefDisableCommands{\def\as{foo}}} \begin{document} \def\as{foo} \section{\as} \end{document}

0

Sorry to get to you so late. Just saw this question in a search for duplicates of another. This problem is unrelated to siunitx and (on TeX Live 2019) still appears if you omit the package. As Ulrike Fischer hinted, the problem is that you loaded newtxtext together with the libertine option of newtxmath. For bold upright letters (such as capital Greek ...

3

You can use the facilities of the translator package to do this. If the package is in your system, then siunitx loads it automatically. You can then set up the unit with \DeclareSIUnit{\fps}{ \translate{frames per second} } and declare translations with \newtranslation[to = French]{frames per second}{images par seconde} In your document this gives \...

1

Partial response for the first point only: using \meter instead of m in unit seems to fix the infinite loop (but I cannot explain why). \SIlist[exponent-to-prefix=true]{1e3;2e3}{\metre} % Produces "1 km and 2 km"

4

Since so many have provided solution, I provide one using threeparttable to set a note in the caption regarding euro, and with columns of equal width (using array's w-column). \documentclass{article} \usepackage[ngerman]{babel} \usepackage{booktabs, caption,array} \usepackage[flushleft, online]{threeparttable} \begin{document} \begin{table} \centering ...

7

What about this? \documentclass{article} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage[locale = DE]{siunitx} \usepackage{textcomp} \usepackage{booktabs, makecell} \newcommand\mc[1]{\multicolumn{1}{c}{#1}} \begin{document} \begin{table}[h] \centering \setcellgapes{3pt} \makegapedcells \sisetup{table-space-text-post={\,€}, ...

8

I would like to suggest an alternative solution: put the euro sign in the column headers. And egreg suggests to use eurosym without the gen option, this way the euro symbol is more beautiful. \documentclass{article} \usepackage[ngerman]{babel} \usepackage[locale = DE]{siunitx} \usepackage{eurosym} \usepackage{booktabs} \begin{document} \begin{table}[h]...

1

Fundamentally same solution, but slightly improved with a thin unbreakble space between number and euro, and some padding at toˆof rows with \extrarowheight: \documentclass{article} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[locale = DE]{siunitx} \usepackage{textcomp} \setlength{\...

5

With the appropriate table-format option for the individual cells as well as with table-space-text-post=€ and table-align-text-post=true you can get the following output: \documentclass{article} \usepackage[ngerman]{babel} \usepackage[locale = DE]{siunitx} \usepackage[gen]{eurosym} \begin{document} \begin{table}[h] \sisetup{table-space-text-post=€, ...

4

In the following code, I have used the \sym command (\def\sym#1{\ifmmode^{#1}\else$$^{#1}$$\fi}) in order to get superscript stars in S type columns. I have also used appropriate table-format settings for the three S type columns to get less horizontal white space between them. To reserve some space for the stars, I have used the table-space-text-post option:...

3

The hyperxmp package inserts some code at \end{document} that does \ifnum\day<10 <do things>\fi, which expects \day to be a number. \day is a TeX primitive register which holds the number of the current day, so everything's fine so far. However, when you use free-standing-units=true and overwrite-functions=true (a dangerous combination), siunitx ...

4

Changing {*} to {=} fixes the linebreak in multirows when you change first and third column to a left aligned X column. To reduce typing, I defined such column as a new columntype. In addition, by using array's new w column, you can fix both width and alignment. I fixed the width to 2 cm, but change those values if you prefer wider or narrower second and ...

0


0

Short answer: Just write \mu in your xlabel. Matlab can understand some TeX syntax, see https://se.mathworks.com/help/matlab/ref/text.html#f68-481090_sep_shared-Interpreter (though this does not mean it actually uses TeX). Addition: as you will see from the Matlab documentation, you can make Matlab use LaTeX to typeset text, with the 'Interpreter', 'LaTeX' ...

3

You should probably checkout the pgfplots package, it allows plotting using math functions or external data tables inside latex code. In my opinion, the result is way better than creating the plots in Matlab and then importing them to your file. Of course, it is compatible with the siunitx package and is consistent with font type and size.

Top 50 recent answers are included