Euro sign in table with siunitxColor table element with siunitx S columnTabular and grid typesettingsiunitx: Decimal alignment with 'less than' signTable, siunitx, render + signAligning in table with siunitxtabu package - gaps in vertical linesAlignment in siunitx tableProblem aligning decimals in multi-column tableTable with numbers in parentheses in siunitxSiunitx table with significance stars not working
What does it mean to count a group of numbers with their multiplicity?
Is it possible to have no customs union and a soft border?
What fraction of 2x2 USA call signs are vanity calls?
Remaining in the US beyond VWP admission period
Did the Byzantines ever attempt to move their capital to Rome?
Who's this voice acting performer?
Project Euler Problem 45
In-universe, why does Doc Brown program the time machine to go to 1955?
Why did Boris Johnson call for new elections?
How to reproduce this notation?
Notation: grace note played on the beat with a chord
Looking for a big fantasy novel about scholarly monks that sort of worship math?
Is it right to use the ideas of non-winning designers in a design contest?
How do I use NEC PC-6001 .p6 or .cas files?
Professor refuses to write a recommendation letter to students who haven't written a research paper with him
How to create large inductors (1H) for audio use?
Book where main character comes out of stasis bubble
Dissuading my girlfriend from a scam
How to measure the statistical "distance" between two frequency distributions?
Why there is no wireless switch?
What are some countries where you can be imprisoned for reading or owning a Bible?
GFI outlets tripped after power outage
Round away from zero
Why would one hemisphere of a planet be very mountainous while the other is flat?
Euro sign in table with siunitx
Color table element with siunitx S columnTabular and grid typesettingsiunitx: Decimal alignment with 'less than' signTable, siunitx, render + signAligning in table with siunitxtabu package - gaps in vertical linesAlignment in siunitx tableProblem aligning decimals in multi-column tableTable with numbers in parentheses in siunitxSiunitx table with significance stars not working
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm trying to align some money in a table using the S column type of the siunitx package, but the € symbol keeps running wild (inconsistent alignment).
Using the eurosym package helps with the alignment but puts the currency symbol up front and I would like to have it behind the number. Any suggestions?
documentclassarticle
usepackage[ngerman]babel
usepackage[locale = DE]siunitx
usepackage[gen]eurosym
begindocument
begintable[h]
centering
begintabular
hline
A & B & C & D \
hline
-199,37 € & 0,00 € & 33,27 € & 166,10 € \
252,56 € & 0,00 € & -409,58 € & 157,02 € \
104,67 € & 0,00 € & -40,18 € & -64,48 € \
0,17 € & 0,00 € & -2,52 € & 2,35 € \
0,00 € & 0,00 € & 0,00 € & 0,00 € \
hline
endtabular
endtable
begintable[h]
centering
begintabular
hline
A & B & C & D \
hline
euro-199,37 & euro0,00 & euro33,27 & euro166,10 \
euro252,56 & euro0,00 & euro-409,58 & euro157,02 \
euro104,67 & euro0,00 & euro-40,18 & euro-64,48 \
euro0,17 & euro0,00 & euro-2,52 & euro2,35 \
euro0,00 & euro0,00 & euro0,00 & euro0,00 \
hline
endtabular
endtable
enddocument

tables siunitx eurosym
New contributor
JMC is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I'm trying to align some money in a table using the S column type of the siunitx package, but the € symbol keeps running wild (inconsistent alignment).
Using the eurosym package helps with the alignment but puts the currency symbol up front and I would like to have it behind the number. Any suggestions?
documentclassarticle
usepackage[ngerman]babel
usepackage[locale = DE]siunitx
usepackage[gen]eurosym
begindocument
begintable[h]
centering
begintabular
hline
A & B & C & D \
hline
-199,37 € & 0,00 € & 33,27 € & 166,10 € \
252,56 € & 0,00 € & -409,58 € & 157,02 € \
104,67 € & 0,00 € & -40,18 € & -64,48 € \
0,17 € & 0,00 € & -2,52 € & 2,35 € \
0,00 € & 0,00 € & 0,00 € & 0,00 € \
hline
endtabular
endtable
begintable[h]
centering
begintabular
hline
A & B & C & D \
hline
euro-199,37 & euro0,00 & euro33,27 & euro166,10 \
euro252,56 & euro0,00 & euro-409,58 & euro157,02 \
euro104,67 & euro0,00 & euro-40,18 & euro-64,48 \
euro0,17 & euro0,00 & euro-2,52 & euro2,35 \
euro0,00 & euro0,00 & euro0,00 & euro0,00 \
hline
endtabular
endtable
enddocument

tables siunitx eurosym
New contributor
JMC is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
6
Typographically, this is wrong and looks horrible. Remove all euro signs and add a table note stating: "NOTE: All numbers in Euro". Or move the euro sign to the column header: "A (€) B (€)" if you have columns that is not in Euro.
– Sveinung
9 hours ago
add a comment |
I'm trying to align some money in a table using the S column type of the siunitx package, but the € symbol keeps running wild (inconsistent alignment).
Using the eurosym package helps with the alignment but puts the currency symbol up front and I would like to have it behind the number. Any suggestions?
documentclassarticle
usepackage[ngerman]babel
usepackage[locale = DE]siunitx
usepackage[gen]eurosym
begindocument
begintable[h]
centering
begintabular
hline
A & B & C & D \
hline
-199,37 € & 0,00 € & 33,27 € & 166,10 € \
252,56 € & 0,00 € & -409,58 € & 157,02 € \
104,67 € & 0,00 € & -40,18 € & -64,48 € \
0,17 € & 0,00 € & -2,52 € & 2,35 € \
0,00 € & 0,00 € & 0,00 € & 0,00 € \
hline
endtabular
endtable
begintable[h]
centering
begintabular
hline
A & B & C & D \
hline
euro-199,37 & euro0,00 & euro33,27 & euro166,10 \
euro252,56 & euro0,00 & euro-409,58 & euro157,02 \
euro104,67 & euro0,00 & euro-40,18 & euro-64,48 \
euro0,17 & euro0,00 & euro-2,52 & euro2,35 \
euro0,00 & euro0,00 & euro0,00 & euro0,00 \
hline
endtabular
endtable
enddocument

tables siunitx eurosym
New contributor
JMC is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I'm trying to align some money in a table using the S column type of the siunitx package, but the € symbol keeps running wild (inconsistent alignment).
Using the eurosym package helps with the alignment but puts the currency symbol up front and I would like to have it behind the number. Any suggestions?
documentclassarticle
usepackage[ngerman]babel
usepackage[locale = DE]siunitx
usepackage[gen]eurosym
begindocument
begintable[h]
centering
begintabular
hline
A & B & C & D \
hline
-199,37 € & 0,00 € & 33,27 € & 166,10 € \
252,56 € & 0,00 € & -409,58 € & 157,02 € \
104,67 € & 0,00 € & -40,18 € & -64,48 € \
0,17 € & 0,00 € & -2,52 € & 2,35 € \
0,00 € & 0,00 € & 0,00 € & 0,00 € \
hline
endtabular
endtable
begintable[h]
centering
begintabular
hline
A & B & C & D \
hline
euro-199,37 & euro0,00 & euro33,27 & euro166,10 \
euro252,56 & euro0,00 & euro-409,58 & euro157,02 \
euro104,67 & euro0,00 & euro-40,18 & euro-64,48 \
euro0,17 & euro0,00 & euro-2,52 & euro2,35 \
euro0,00 & euro0,00 & euro0,00 & euro0,00 \
hline
endtabular
endtable
enddocument

tables siunitx eurosym
tables siunitx eurosym
New contributor
JMC is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
JMC is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
JMC is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 10 hours ago
JMCJMC
162 bronze badges
162 bronze badges
New contributor
JMC is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
JMC is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
6
Typographically, this is wrong and looks horrible. Remove all euro signs and add a table note stating: "NOTE: All numbers in Euro". Or move the euro sign to the column header: "A (€) B (€)" if you have columns that is not in Euro.
– Sveinung
9 hours ago
add a comment |
6
Typographically, this is wrong and looks horrible. Remove all euro signs and add a table note stating: "NOTE: All numbers in Euro". Or move the euro sign to the column header: "A (€) B (€)" if you have columns that is not in Euro.
– Sveinung
9 hours ago
6
6
Typographically, this is wrong and looks horrible. Remove all euro signs and add a table note stating: "NOTE: All numbers in Euro". Or move the euro sign to the column header: "A (€) B (€)" if you have columns that is not in Euro.
– Sveinung
9 hours ago
Typographically, this is wrong and looks horrible. Remove all euro signs and add a table note stating: "NOTE: All numbers in Euro". Or move the euro sign to the column header: "A (€) B (€)" if you have columns that is not in Euro.
– Sveinung
9 hours ago
add a comment |
5 Answers
5
active
oldest
votes
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:

documentclassarticle
usepackage[ngerman]babel
usepackage[locale = DE]siunitx
usepackage[gen]eurosym
begindocument
begintable[h]
sisetuptable-space-text-post=€, table-align-text-post=true
centering
begintabularS[table-format=-3.2]
hline
A & B & C & D \
hline
-199,37 € & 0,00 € & 33,27 € & 166,10 € \
252,56 € & 0,00 € & -409,58 € & 157,02 € \
104,67 € & 0,00 € & -40,18 € & -64,48 € \
0,17 € & 0,00 € & -2,52 € & 2,35 € \
0,00 € & 0,00 € & 0,00 € & 0,00 € \
hline
endtabular
endtable
enddocument
To avoid repeating the € symbol over and over again, I'd either put it into the column header of the corresponding columns or even into the caption of the table.
add a comment |
What about this?

documentclassarticle
usepackage[ngerman]babel
usepackage[T1]fontenc
usepackage[locale = DE]siunitx
usepackagetextcomp
usepackagebooktabs, makecell
newcommandmc[1]multicolumn1c#1
begindocument
begintable[h]
centering
setcellgapes3pt
makegapedcells
sisetuptable-space-text-post=,€,
table-align-text-post=false
begintabularS[table-format=-3.2]<,€
S[table-format= 1.2]<,€
*2S[table-format=-3.2]<,€
toprule
mcA & mcB & mcC & mcD cr
midrule
-199,37 & 0,00 & 33,27 & 166,10 cr
252,56 & 0,00 & -409,58 & 157,02 cr
104,67 & 0,00 & -40,18 & -64,48 cr
0,17 & 0,00 & -2,52 & 2,35 cr
0,00 & 0,00 & 0,00 & 0,00 cr
bottomrule
endtabular
endtable
enddocument
add a comment |
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.
documentclassarticle
usepackage[ngerman]babel
usepackage[locale = DE]siunitx
usepackageeurosym
usepackagebooktabs
begindocument
begintable[h]
centering
begintabularSSSS
toprule
A (euro) & B (euro) & C (euro) & D (euro) \
midrule
-199,37 & 0,00 & 33,27 & 166,10 \
252,56 & 0,00 & -409,58 & 157,02 \
104,67 & 0,00 & -40,18 & -64,48 \
0,17 & 0,00 & -2,52 & 2,35 \
0,00 & 0,00 & 0,00 & 0,00 \
bottomrule
endtabular
endtable
Or:
begintable[h]
centering
begintabularSSSS
toprule
A & B & C & D \
(euro) & (euro) & (euro) & (euro) \
midrule
-199,37 & 0,00 & 33,27 & 166,10 \
252,56 & 0,00 & -409,58 & 157,02 \
104,67 & 0,00 & -40,18 & -64,48 \
0,17 & 0,00 & -2,52 & 2,35 \
0,00 & 0,00 & 0,00 & 0,00 \
bottomrule
endtabular
endtable
enddocument

1
Not using the horrible Euro symbol provided with thegenoption toeurosymwould be a good thing.
– egreg
5 hours ago
@egreg I copied from the OP's MWE. What should I use?
– CarLaTeX
5 hours ago
1
Just remove thegenoption.
– egreg
5 hours ago
@egreg Done, thanks!
– CarLaTeX
5 hours ago
add a comment |
Fundamentally same solution, but slightly improved with a thin unbreakble space between number and euro, and some padding at toˆof rows with extrarowheight:
documentclassarticle
usepackage[ngerman]babel
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackagelmodern
usepackage[locale = DE]siunitx
usepackagetextcomp
setlengthextrarowheight2pt
begindocument
begintable[h]
centering
sisetuptable-format =-3.2, table-number-alignment=center, table-space-text-post=€, table-align-text-post=false
begintabular
hline
A & B & C & D \
hline
-199,37,€ & 0,00 ,€ & 33,27 ,€ & 166,10 \
252,56 ,€ & 0,00 ,€ & -409,58 ,€ & 157,02 ,€ \
104,67 ,€ & 0,00 ,€ & -40,18 ,€ & -64,48 ,€ \
0,17 ,€ & 0,00 ,€ & -2,52 ,€ & 2,35 ,€ \
0,00 ,€ & 0,00 ,€ & 0,00 ,€ & 0,00 ,€ \
hline
endtabular
endtable
enddocument

add a comment |
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).

documentclassarticle
usepackage[ngerman]babel
usepackagebooktabs, caption,array
usepackage[flushleft, online]threeparttable
begindocument
begintable
centering
beginthreeparttable
captionCaption for table~reftab:a, which has both a tablenotetnotea and a label labeltab:a
begintabular@*4wr1.3cm@
toprule
multicolumn1wc1cmsmall A & multicolumn1wc1cmkern1.2emsmall B &
multicolumn1wc1cmkern1emsmall C & multicolumn1wc1cm@kern1emsmall D \
midrule
$-$199,37 & 0,00 & 33,27 & 166,10 \
252,56 & 0,00 & $-$409,58 & 157,02 \
104,67 & 0,00 & $-$40,18 & $-$64,48 \
0,17 & 0,00 & $-$2,52 & 2,35 \
0,00 & 0,00 & 0,00 & 0,00 \
bottomrule
endtabular
begintablenotes
item [a] All numbers are in Euro
endtablenotes
endthreeparttable
endtable
enddocument
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
JMC is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f507126%2feuro-sign-in-table-with-siunitx%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
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:

documentclassarticle
usepackage[ngerman]babel
usepackage[locale = DE]siunitx
usepackage[gen]eurosym
begindocument
begintable[h]
sisetuptable-space-text-post=€, table-align-text-post=true
centering
begintabularS[table-format=-3.2]
hline
A & B & C & D \
hline
-199,37 € & 0,00 € & 33,27 € & 166,10 € \
252,56 € & 0,00 € & -409,58 € & 157,02 € \
104,67 € & 0,00 € & -40,18 € & -64,48 € \
0,17 € & 0,00 € & -2,52 € & 2,35 € \
0,00 € & 0,00 € & 0,00 € & 0,00 € \
hline
endtabular
endtable
enddocument
To avoid repeating the € symbol over and over again, I'd either put it into the column header of the corresponding columns or even into the caption of the table.
add a comment |
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:

documentclassarticle
usepackage[ngerman]babel
usepackage[locale = DE]siunitx
usepackage[gen]eurosym
begindocument
begintable[h]
sisetuptable-space-text-post=€, table-align-text-post=true
centering
begintabularS[table-format=-3.2]
hline
A & B & C & D \
hline
-199,37 € & 0,00 € & 33,27 € & 166,10 € \
252,56 € & 0,00 € & -409,58 € & 157,02 € \
104,67 € & 0,00 € & -40,18 € & -64,48 € \
0,17 € & 0,00 € & -2,52 € & 2,35 € \
0,00 € & 0,00 € & 0,00 € & 0,00 € \
hline
endtabular
endtable
enddocument
To avoid repeating the € symbol over and over again, I'd either put it into the column header of the corresponding columns or even into the caption of the table.
add a comment |
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:

documentclassarticle
usepackage[ngerman]babel
usepackage[locale = DE]siunitx
usepackage[gen]eurosym
begindocument
begintable[h]
sisetuptable-space-text-post=€, table-align-text-post=true
centering
begintabularS[table-format=-3.2]
hline
A & B & C & D \
hline
-199,37 € & 0,00 € & 33,27 € & 166,10 € \
252,56 € & 0,00 € & -409,58 € & 157,02 € \
104,67 € & 0,00 € & -40,18 € & -64,48 € \
0,17 € & 0,00 € & -2,52 € & 2,35 € \
0,00 € & 0,00 € & 0,00 € & 0,00 € \
hline
endtabular
endtable
enddocument
To avoid repeating the € symbol over and over again, I'd either put it into the column header of the corresponding columns or even into the caption of the table.
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:

documentclassarticle
usepackage[ngerman]babel
usepackage[locale = DE]siunitx
usepackage[gen]eurosym
begindocument
begintable[h]
sisetuptable-space-text-post=€, table-align-text-post=true
centering
begintabularS[table-format=-3.2]
hline
A & B & C & D \
hline
-199,37 € & 0,00 € & 33,27 € & 166,10 € \
252,56 € & 0,00 € & -409,58 € & 157,02 € \
104,67 € & 0,00 € & -40,18 € & -64,48 € \
0,17 € & 0,00 € & -2,52 € & 2,35 € \
0,00 € & 0,00 € & 0,00 € & 0,00 € \
hline
endtabular
endtable
enddocument
To avoid repeating the € symbol over and over again, I'd either put it into the column header of the corresponding columns or even into the caption of the table.
answered 9 hours ago
leandriisleandriis
19.1k1 gold badge11 silver badges39 bronze badges
19.1k1 gold badge11 silver badges39 bronze badges
add a comment |
add a comment |
What about this?

documentclassarticle
usepackage[ngerman]babel
usepackage[T1]fontenc
usepackage[locale = DE]siunitx
usepackagetextcomp
usepackagebooktabs, makecell
newcommandmc[1]multicolumn1c#1
begindocument
begintable[h]
centering
setcellgapes3pt
makegapedcells
sisetuptable-space-text-post=,€,
table-align-text-post=false
begintabularS[table-format=-3.2]<,€
S[table-format= 1.2]<,€
*2S[table-format=-3.2]<,€
toprule
mcA & mcB & mcC & mcD cr
midrule
-199,37 & 0,00 & 33,27 & 166,10 cr
252,56 & 0,00 & -409,58 & 157,02 cr
104,67 & 0,00 & -40,18 & -64,48 cr
0,17 & 0,00 & -2,52 & 2,35 cr
0,00 & 0,00 & 0,00 & 0,00 cr
bottomrule
endtabular
endtable
enddocument
add a comment |
What about this?

documentclassarticle
usepackage[ngerman]babel
usepackage[T1]fontenc
usepackage[locale = DE]siunitx
usepackagetextcomp
usepackagebooktabs, makecell
newcommandmc[1]multicolumn1c#1
begindocument
begintable[h]
centering
setcellgapes3pt
makegapedcells
sisetuptable-space-text-post=,€,
table-align-text-post=false
begintabularS[table-format=-3.2]<,€
S[table-format= 1.2]<,€
*2S[table-format=-3.2]<,€
toprule
mcA & mcB & mcC & mcD cr
midrule
-199,37 & 0,00 & 33,27 & 166,10 cr
252,56 & 0,00 & -409,58 & 157,02 cr
104,67 & 0,00 & -40,18 & -64,48 cr
0,17 & 0,00 & -2,52 & 2,35 cr
0,00 & 0,00 & 0,00 & 0,00 cr
bottomrule
endtabular
endtable
enddocument
add a comment |
What about this?

documentclassarticle
usepackage[ngerman]babel
usepackage[T1]fontenc
usepackage[locale = DE]siunitx
usepackagetextcomp
usepackagebooktabs, makecell
newcommandmc[1]multicolumn1c#1
begindocument
begintable[h]
centering
setcellgapes3pt
makegapedcells
sisetuptable-space-text-post=,€,
table-align-text-post=false
begintabularS[table-format=-3.2]<,€
S[table-format= 1.2]<,€
*2S[table-format=-3.2]<,€
toprule
mcA & mcB & mcC & mcD cr
midrule
-199,37 & 0,00 & 33,27 & 166,10 cr
252,56 & 0,00 & -409,58 & 157,02 cr
104,67 & 0,00 & -40,18 & -64,48 cr
0,17 & 0,00 & -2,52 & 2,35 cr
0,00 & 0,00 & 0,00 & 0,00 cr
bottomrule
endtabular
endtable
enddocument
What about this?

documentclassarticle
usepackage[ngerman]babel
usepackage[T1]fontenc
usepackage[locale = DE]siunitx
usepackagetextcomp
usepackagebooktabs, makecell
newcommandmc[1]multicolumn1c#1
begindocument
begintable[h]
centering
setcellgapes3pt
makegapedcells
sisetuptable-space-text-post=,€,
table-align-text-post=false
begintabularS[table-format=-3.2]<,€
S[table-format= 1.2]<,€
*2S[table-format=-3.2]<,€
toprule
mcA & mcB & mcC & mcD cr
midrule
-199,37 & 0,00 & 33,27 & 166,10 cr
252,56 & 0,00 & -409,58 & 157,02 cr
104,67 & 0,00 & -40,18 & -64,48 cr
0,17 & 0,00 & -2,52 & 2,35 cr
0,00 & 0,00 & 0,00 & 0,00 cr
bottomrule
endtabular
endtable
enddocument
answered 5 hours ago
ZarkoZarko
146k8 gold badges82 silver badges193 bronze badges
146k8 gold badges82 silver badges193 bronze badges
add a comment |
add a comment |
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.
documentclassarticle
usepackage[ngerman]babel
usepackage[locale = DE]siunitx
usepackageeurosym
usepackagebooktabs
begindocument
begintable[h]
centering
begintabularSSSS
toprule
A (euro) & B (euro) & C (euro) & D (euro) \
midrule
-199,37 & 0,00 & 33,27 & 166,10 \
252,56 & 0,00 & -409,58 & 157,02 \
104,67 & 0,00 & -40,18 & -64,48 \
0,17 & 0,00 & -2,52 & 2,35 \
0,00 & 0,00 & 0,00 & 0,00 \
bottomrule
endtabular
endtable
Or:
begintable[h]
centering
begintabularSSSS
toprule
A & B & C & D \
(euro) & (euro) & (euro) & (euro) \
midrule
-199,37 & 0,00 & 33,27 & 166,10 \
252,56 & 0,00 & -409,58 & 157,02 \
104,67 & 0,00 & -40,18 & -64,48 \
0,17 & 0,00 & -2,52 & 2,35 \
0,00 & 0,00 & 0,00 & 0,00 \
bottomrule
endtabular
endtable
enddocument

1
Not using the horrible Euro symbol provided with thegenoption toeurosymwould be a good thing.
– egreg
5 hours ago
@egreg I copied from the OP's MWE. What should I use?
– CarLaTeX
5 hours ago
1
Just remove thegenoption.
– egreg
5 hours ago
@egreg Done, thanks!
– CarLaTeX
5 hours ago
add a comment |
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.
documentclassarticle
usepackage[ngerman]babel
usepackage[locale = DE]siunitx
usepackageeurosym
usepackagebooktabs
begindocument
begintable[h]
centering
begintabularSSSS
toprule
A (euro) & B (euro) & C (euro) & D (euro) \
midrule
-199,37 & 0,00 & 33,27 & 166,10 \
252,56 & 0,00 & -409,58 & 157,02 \
104,67 & 0,00 & -40,18 & -64,48 \
0,17 & 0,00 & -2,52 & 2,35 \
0,00 & 0,00 & 0,00 & 0,00 \
bottomrule
endtabular
endtable
Or:
begintable[h]
centering
begintabularSSSS
toprule
A & B & C & D \
(euro) & (euro) & (euro) & (euro) \
midrule
-199,37 & 0,00 & 33,27 & 166,10 \
252,56 & 0,00 & -409,58 & 157,02 \
104,67 & 0,00 & -40,18 & -64,48 \
0,17 & 0,00 & -2,52 & 2,35 \
0,00 & 0,00 & 0,00 & 0,00 \
bottomrule
endtabular
endtable
enddocument

1
Not using the horrible Euro symbol provided with thegenoption toeurosymwould be a good thing.
– egreg
5 hours ago
@egreg I copied from the OP's MWE. What should I use?
– CarLaTeX
5 hours ago
1
Just remove thegenoption.
– egreg
5 hours ago
@egreg Done, thanks!
– CarLaTeX
5 hours ago
add a comment |
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.
documentclassarticle
usepackage[ngerman]babel
usepackage[locale = DE]siunitx
usepackageeurosym
usepackagebooktabs
begindocument
begintable[h]
centering
begintabularSSSS
toprule
A (euro) & B (euro) & C (euro) & D (euro) \
midrule
-199,37 & 0,00 & 33,27 & 166,10 \
252,56 & 0,00 & -409,58 & 157,02 \
104,67 & 0,00 & -40,18 & -64,48 \
0,17 & 0,00 & -2,52 & 2,35 \
0,00 & 0,00 & 0,00 & 0,00 \
bottomrule
endtabular
endtable
Or:
begintable[h]
centering
begintabularSSSS
toprule
A & B & C & D \
(euro) & (euro) & (euro) & (euro) \
midrule
-199,37 & 0,00 & 33,27 & 166,10 \
252,56 & 0,00 & -409,58 & 157,02 \
104,67 & 0,00 & -40,18 & -64,48 \
0,17 & 0,00 & -2,52 & 2,35 \
0,00 & 0,00 & 0,00 & 0,00 \
bottomrule
endtabular
endtable
enddocument

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.
documentclassarticle
usepackage[ngerman]babel
usepackage[locale = DE]siunitx
usepackageeurosym
usepackagebooktabs
begindocument
begintable[h]
centering
begintabularSSSS
toprule
A (euro) & B (euro) & C (euro) & D (euro) \
midrule
-199,37 & 0,00 & 33,27 & 166,10 \
252,56 & 0,00 & -409,58 & 157,02 \
104,67 & 0,00 & -40,18 & -64,48 \
0,17 & 0,00 & -2,52 & 2,35 \
0,00 & 0,00 & 0,00 & 0,00 \
bottomrule
endtabular
endtable
Or:
begintable[h]
centering
begintabularSSSS
toprule
A & B & C & D \
(euro) & (euro) & (euro) & (euro) \
midrule
-199,37 & 0,00 & 33,27 & 166,10 \
252,56 & 0,00 & -409,58 & 157,02 \
104,67 & 0,00 & -40,18 & -64,48 \
0,17 & 0,00 & -2,52 & 2,35 \
0,00 & 0,00 & 0,00 & 0,00 \
bottomrule
endtabular
endtable
enddocument

edited 5 hours ago
answered 5 hours ago
CarLaTeXCarLaTeX
37.6k5 gold badges61 silver badges166 bronze badges
37.6k5 gold badges61 silver badges166 bronze badges
1
Not using the horrible Euro symbol provided with thegenoption toeurosymwould be a good thing.
– egreg
5 hours ago
@egreg I copied from the OP's MWE. What should I use?
– CarLaTeX
5 hours ago
1
Just remove thegenoption.
– egreg
5 hours ago
@egreg Done, thanks!
– CarLaTeX
5 hours ago
add a comment |
1
Not using the horrible Euro symbol provided with thegenoption toeurosymwould be a good thing.
– egreg
5 hours ago
@egreg I copied from the OP's MWE. What should I use?
– CarLaTeX
5 hours ago
1
Just remove thegenoption.
– egreg
5 hours ago
@egreg Done, thanks!
– CarLaTeX
5 hours ago
1
1
Not using the horrible Euro symbol provided with the
gen option to eurosym would be a good thing.– egreg
5 hours ago
Not using the horrible Euro symbol provided with the
gen option to eurosym would be a good thing.– egreg
5 hours ago
@egreg I copied from the OP's MWE. What should I use?
– CarLaTeX
5 hours ago
@egreg I copied from the OP's MWE. What should I use?
– CarLaTeX
5 hours ago
1
1
Just remove the
gen option.– egreg
5 hours ago
Just remove the
gen option.– egreg
5 hours ago
@egreg Done, thanks!
– CarLaTeX
5 hours ago
@egreg Done, thanks!
– CarLaTeX
5 hours ago
add a comment |
Fundamentally same solution, but slightly improved with a thin unbreakble space between number and euro, and some padding at toˆof rows with extrarowheight:
documentclassarticle
usepackage[ngerman]babel
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackagelmodern
usepackage[locale = DE]siunitx
usepackagetextcomp
setlengthextrarowheight2pt
begindocument
begintable[h]
centering
sisetuptable-format =-3.2, table-number-alignment=center, table-space-text-post=€, table-align-text-post=false
begintabular
hline
A & B & C & D \
hline
-199,37,€ & 0,00 ,€ & 33,27 ,€ & 166,10 \
252,56 ,€ & 0,00 ,€ & -409,58 ,€ & 157,02 ,€ \
104,67 ,€ & 0,00 ,€ & -40,18 ,€ & -64,48 ,€ \
0,17 ,€ & 0,00 ,€ & -2,52 ,€ & 2,35 ,€ \
0,00 ,€ & 0,00 ,€ & 0,00 ,€ & 0,00 ,€ \
hline
endtabular
endtable
enddocument

add a comment |
Fundamentally same solution, but slightly improved with a thin unbreakble space between number and euro, and some padding at toˆof rows with extrarowheight:
documentclassarticle
usepackage[ngerman]babel
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackagelmodern
usepackage[locale = DE]siunitx
usepackagetextcomp
setlengthextrarowheight2pt
begindocument
begintable[h]
centering
sisetuptable-format =-3.2, table-number-alignment=center, table-space-text-post=€, table-align-text-post=false
begintabular
hline
A & B & C & D \
hline
-199,37,€ & 0,00 ,€ & 33,27 ,€ & 166,10 \
252,56 ,€ & 0,00 ,€ & -409,58 ,€ & 157,02 ,€ \
104,67 ,€ & 0,00 ,€ & -40,18 ,€ & -64,48 ,€ \
0,17 ,€ & 0,00 ,€ & -2,52 ,€ & 2,35 ,€ \
0,00 ,€ & 0,00 ,€ & 0,00 ,€ & 0,00 ,€ \
hline
endtabular
endtable
enddocument

add a comment |
Fundamentally same solution, but slightly improved with a thin unbreakble space between number and euro, and some padding at toˆof rows with extrarowheight:
documentclassarticle
usepackage[ngerman]babel
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackagelmodern
usepackage[locale = DE]siunitx
usepackagetextcomp
setlengthextrarowheight2pt
begindocument
begintable[h]
centering
sisetuptable-format =-3.2, table-number-alignment=center, table-space-text-post=€, table-align-text-post=false
begintabular
hline
A & B & C & D \
hline
-199,37,€ & 0,00 ,€ & 33,27 ,€ & 166,10 \
252,56 ,€ & 0,00 ,€ & -409,58 ,€ & 157,02 ,€ \
104,67 ,€ & 0,00 ,€ & -40,18 ,€ & -64,48 ,€ \
0,17 ,€ & 0,00 ,€ & -2,52 ,€ & 2,35 ,€ \
0,00 ,€ & 0,00 ,€ & 0,00 ,€ & 0,00 ,€ \
hline
endtabular
endtable
enddocument

Fundamentally same solution, but slightly improved with a thin unbreakble space between number and euro, and some padding at toˆof rows with extrarowheight:
documentclassarticle
usepackage[ngerman]babel
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackagelmodern
usepackage[locale = DE]siunitx
usepackagetextcomp
setlengthextrarowheight2pt
begindocument
begintable[h]
centering
sisetuptable-format =-3.2, table-number-alignment=center, table-space-text-post=€, table-align-text-post=false
begintabular
hline
A & B & C & D \
hline
-199,37,€ & 0,00 ,€ & 33,27 ,€ & 166,10 \
252,56 ,€ & 0,00 ,€ & -409,58 ,€ & 157,02 ,€ \
104,67 ,€ & 0,00 ,€ & -40,18 ,€ & -64,48 ,€ \
0,17 ,€ & 0,00 ,€ & -2,52 ,€ & 2,35 ,€ \
0,00 ,€ & 0,00 ,€ & 0,00 ,€ & 0,00 ,€ \
hline
endtabular
endtable
enddocument

answered 6 hours ago
BernardBernard
190k7 gold badges86 silver badges224 bronze badges
190k7 gold badges86 silver badges224 bronze badges
add a comment |
add a comment |
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).

documentclassarticle
usepackage[ngerman]babel
usepackagebooktabs, caption,array
usepackage[flushleft, online]threeparttable
begindocument
begintable
centering
beginthreeparttable
captionCaption for table~reftab:a, which has both a tablenotetnotea and a label labeltab:a
begintabular@*4wr1.3cm@
toprule
multicolumn1wc1cmsmall A & multicolumn1wc1cmkern1.2emsmall B &
multicolumn1wc1cmkern1emsmall C & multicolumn1wc1cm@kern1emsmall D \
midrule
$-$199,37 & 0,00 & 33,27 & 166,10 \
252,56 & 0,00 & $-$409,58 & 157,02 \
104,67 & 0,00 & $-$40,18 & $-$64,48 \
0,17 & 0,00 & $-$2,52 & 2,35 \
0,00 & 0,00 & 0,00 & 0,00 \
bottomrule
endtabular
begintablenotes
item [a] All numbers are in Euro
endtablenotes
endthreeparttable
endtable
enddocument
add a comment |
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).

documentclassarticle
usepackage[ngerman]babel
usepackagebooktabs, caption,array
usepackage[flushleft, online]threeparttable
begindocument
begintable
centering
beginthreeparttable
captionCaption for table~reftab:a, which has both a tablenotetnotea and a label labeltab:a
begintabular@*4wr1.3cm@
toprule
multicolumn1wc1cmsmall A & multicolumn1wc1cmkern1.2emsmall B &
multicolumn1wc1cmkern1emsmall C & multicolumn1wc1cm@kern1emsmall D \
midrule
$-$199,37 & 0,00 & 33,27 & 166,10 \
252,56 & 0,00 & $-$409,58 & 157,02 \
104,67 & 0,00 & $-$40,18 & $-$64,48 \
0,17 & 0,00 & $-$2,52 & 2,35 \
0,00 & 0,00 & 0,00 & 0,00 \
bottomrule
endtabular
begintablenotes
item [a] All numbers are in Euro
endtablenotes
endthreeparttable
endtable
enddocument
add a comment |
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).

documentclassarticle
usepackage[ngerman]babel
usepackagebooktabs, caption,array
usepackage[flushleft, online]threeparttable
begindocument
begintable
centering
beginthreeparttable
captionCaption for table~reftab:a, which has both a tablenotetnotea and a label labeltab:a
begintabular@*4wr1.3cm@
toprule
multicolumn1wc1cmsmall A & multicolumn1wc1cmkern1.2emsmall B &
multicolumn1wc1cmkern1emsmall C & multicolumn1wc1cm@kern1emsmall D \
midrule
$-$199,37 & 0,00 & 33,27 & 166,10 \
252,56 & 0,00 & $-$409,58 & 157,02 \
104,67 & 0,00 & $-$40,18 & $-$64,48 \
0,17 & 0,00 & $-$2,52 & 2,35 \
0,00 & 0,00 & 0,00 & 0,00 \
bottomrule
endtabular
begintablenotes
item [a] All numbers are in Euro
endtablenotes
endthreeparttable
endtable
enddocument
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).

documentclassarticle
usepackage[ngerman]babel
usepackagebooktabs, caption,array
usepackage[flushleft, online]threeparttable
begindocument
begintable
centering
beginthreeparttable
captionCaption for table~reftab:a, which has both a tablenotetnotea and a label labeltab:a
begintabular@*4wr1.3cm@
toprule
multicolumn1wc1cmsmall A & multicolumn1wc1cmkern1.2emsmall B &
multicolumn1wc1cmkern1emsmall C & multicolumn1wc1cm@kern1emsmall D \
midrule
$-$199,37 & 0,00 & 33,27 & 166,10 \
252,56 & 0,00 & $-$409,58 & 157,02 \
104,67 & 0,00 & $-$40,18 & $-$64,48 \
0,17 & 0,00 & $-$2,52 & 2,35 \
0,00 & 0,00 & 0,00 & 0,00 \
bottomrule
endtabular
begintablenotes
item [a] All numbers are in Euro
endtablenotes
endthreeparttable
endtable
enddocument
answered 1 hour ago
SveinungSveinung
14.3k2 gold badges38 silver badges63 bronze badges
14.3k2 gold badges38 silver badges63 bronze badges
add a comment |
add a comment |
JMC is a new contributor. Be nice, and check out our Code of Conduct.
JMC is a new contributor. Be nice, and check out our Code of Conduct.
JMC is a new contributor. Be nice, and check out our Code of Conduct.
JMC is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f507126%2feuro-sign-in-table-with-siunitx%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
6
Typographically, this is wrong and looks horrible. Remove all euro signs and add a table note stating: "NOTE: All numbers in Euro". Or move the euro sign to the column header: "A (€) B (€)" if you have columns that is not in Euro.
– Sveinung
9 hours ago