Resizing standalone table for image inclusion into PowerPoint
I'm attempting to use the standalone package to create large tables to import to Microsoft PowerPoint. When I have attempted to use the 'size' and 'density' commands, the image looks very blurry after importing to PowerPoint. I have only been able to increase the table size by increasing the font size, which changes the dimensions and reduces the weight of midrule
etc. I apologize for any faux pas, this is my first post.
documentclass[convert={size=1080,outext=.png},border=5]{standalone}
usepackage{standalone,tikz,booktabs,mathtools,threeparttable,dcolumn,bold-extra,caption,siunitx,multirow,upgreek,fixltx2e,float,xfrac,graphicx,anyfontsize}
begin{document}
{fontsize{42}{50}selectfont
minipage{2.5linewidth}
newcolumntype{.}{D{.}{.}{-1}}
makeatletter
newcolumntype{B}[3]{>{boldmathDC@{#1}{#2}{#3}}c<{DC@end}}
makeatother
begin{table}[H]
centering
begin{threeparttable}
begin{tabular}{ l . . . . . }
toprule
Source & multicolumn{1}{c}{SS} & multicolumn{1}{c}{DOF} & multicolumn{1}{c}{MS} & multicolumn{1}{c}{F} & multicolumn{1}{c}{%SS} \
toprule
A & 15.84 & 1 & 15.84 & multicolumn{1}{B{.}{.}{-1}} {17.89}tnote{*} & multicolumn{1}{B{.}{.}{-1}}{10.29}tnote{textdagger} \
B & 64.33 & 1 & 64.33 & multicolumn{1}{B{.}{.}{-1}}{72.69} & multicolumn{1}{B{.}{.}{-1}}{41.82} \
C & 22.43 & 1 & 22.43 & multicolumn{1}{B{.}{.}{-1}}{25.34} & multicolumn{1}{B{.}{.}{-1}}{14.58}\
D & 1.50 & 1 & 1.50 & 1.70 & 0.98 \
addlinespace
A$times$B & 22.49 & 1 & 22.49 &multicolumn{1}{B{.}{.}{-1}}{25.41} & multicolumn{1}{B{.}{.}{-1}}{14.62}\
A$times$C & 3.29 & 1 & 3.29 & 3.72 &2.14 \
A$times$D & 3.44 & 1 & 3.44 & 3.88 & 2.23\
B$times$C & 7.02 & 1& 7.02 & multicolumn{1}{B{.}{.}{-1}}{7.93} & 4.56\
B$times$D & 6.94 & 1 & 6.94 & multicolumn{1}{B{.}{.}{-1}}{7.84} & 4.51\
C$times$D & 2.13 & 1 & 2.13 & 2.41 & 1.38\
addlinespace
Error & 4.43 & 5 & 0.89 & & \
addlinespace
Total & 153.82 & 15 & & & \
bottomrule
end{tabular}
begin{tablenotes}
item [*] Bold entries in the F ratio column designate values greater than an Ftextsubscript{cr} of 6.61 at a confidence limit of P = 95.
item [textdagger] Bold entries denote %SS values greater than 10% of the total SS.
end{tablenotes}
end{threeparttable}
end{table}
endminipage
}
end{document}
standalone png export powerpoint
|
show 4 more comments
I'm attempting to use the standalone package to create large tables to import to Microsoft PowerPoint. When I have attempted to use the 'size' and 'density' commands, the image looks very blurry after importing to PowerPoint. I have only been able to increase the table size by increasing the font size, which changes the dimensions and reduces the weight of midrule
etc. I apologize for any faux pas, this is my first post.
documentclass[convert={size=1080,outext=.png},border=5]{standalone}
usepackage{standalone,tikz,booktabs,mathtools,threeparttable,dcolumn,bold-extra,caption,siunitx,multirow,upgreek,fixltx2e,float,xfrac,graphicx,anyfontsize}
begin{document}
{fontsize{42}{50}selectfont
minipage{2.5linewidth}
newcolumntype{.}{D{.}{.}{-1}}
makeatletter
newcolumntype{B}[3]{>{boldmathDC@{#1}{#2}{#3}}c<{DC@end}}
makeatother
begin{table}[H]
centering
begin{threeparttable}
begin{tabular}{ l . . . . . }
toprule
Source & multicolumn{1}{c}{SS} & multicolumn{1}{c}{DOF} & multicolumn{1}{c}{MS} & multicolumn{1}{c}{F} & multicolumn{1}{c}{%SS} \
toprule
A & 15.84 & 1 & 15.84 & multicolumn{1}{B{.}{.}{-1}} {17.89}tnote{*} & multicolumn{1}{B{.}{.}{-1}}{10.29}tnote{textdagger} \
B & 64.33 & 1 & 64.33 & multicolumn{1}{B{.}{.}{-1}}{72.69} & multicolumn{1}{B{.}{.}{-1}}{41.82} \
C & 22.43 & 1 & 22.43 & multicolumn{1}{B{.}{.}{-1}}{25.34} & multicolumn{1}{B{.}{.}{-1}}{14.58}\
D & 1.50 & 1 & 1.50 & 1.70 & 0.98 \
addlinespace
A$times$B & 22.49 & 1 & 22.49 &multicolumn{1}{B{.}{.}{-1}}{25.41} & multicolumn{1}{B{.}{.}{-1}}{14.62}\
A$times$C & 3.29 & 1 & 3.29 & 3.72 &2.14 \
A$times$D & 3.44 & 1 & 3.44 & 3.88 & 2.23\
B$times$C & 7.02 & 1& 7.02 & multicolumn{1}{B{.}{.}{-1}}{7.93} & 4.56\
B$times$D & 6.94 & 1 & 6.94 & multicolumn{1}{B{.}{.}{-1}}{7.84} & 4.51\
C$times$D & 2.13 & 1 & 2.13 & 2.41 & 1.38\
addlinespace
Error & 4.43 & 5 & 0.89 & & \
addlinespace
Total & 153.82 & 15 & & & \
bottomrule
end{tabular}
begin{tablenotes}
item [*] Bold entries in the F ratio column designate values greater than an Ftextsubscript{cr} of 6.61 at a confidence limit of P = 95.
item [textdagger] Bold entries denote %SS values greater than 10% of the total SS.
end{tablenotes}
end{threeparttable}
end{table}
endminipage
}
end{document}
standalone png export powerpoint
2
powerpoint won't takepng
as such. It will try to convert it first to some other acceptible format likejpg
. In this process your resolution may be lost. So, convert directly to.jp
usingsize=1080,outext=.jpg
and try to insert. Don't scale fonts, but scale the image in powerpoint. Best way is to usebeamer
, say bye bye to power point.
– user11232
Oct 28 '15 at 6:29
Unfortunately that didn't work either. To be more explicit, I'm just dragging the LaTeX output .pdf into the PowerPoint, don't know if that was incorrect. I'll look into beamer, but this presentation is due in two days and I don't want to mess around with it with such little time.
– Lucca Giannechini
Oct 28 '15 at 6:39
Dragging should not be done. You should useinsert
function of power point. Use a jpg image directly. Don't allow power point to convert.
– user11232
Oct 28 '15 at 6:47
I might be doing something wrong then, because no .jpg file is created, only the standard .pdf. Is standalone supposed to create a second .jpg file?
– Lucca Giannechini
Oct 28 '15 at 7:15
You will needimagemagick
installed for that. I converted your table in to jpg and inserted in to power point and it looks alright. I didn't use large fonts.
– user11232
Oct 28 '15 at 7:17
|
show 4 more comments
I'm attempting to use the standalone package to create large tables to import to Microsoft PowerPoint. When I have attempted to use the 'size' and 'density' commands, the image looks very blurry after importing to PowerPoint. I have only been able to increase the table size by increasing the font size, which changes the dimensions and reduces the weight of midrule
etc. I apologize for any faux pas, this is my first post.
documentclass[convert={size=1080,outext=.png},border=5]{standalone}
usepackage{standalone,tikz,booktabs,mathtools,threeparttable,dcolumn,bold-extra,caption,siunitx,multirow,upgreek,fixltx2e,float,xfrac,graphicx,anyfontsize}
begin{document}
{fontsize{42}{50}selectfont
minipage{2.5linewidth}
newcolumntype{.}{D{.}{.}{-1}}
makeatletter
newcolumntype{B}[3]{>{boldmathDC@{#1}{#2}{#3}}c<{DC@end}}
makeatother
begin{table}[H]
centering
begin{threeparttable}
begin{tabular}{ l . . . . . }
toprule
Source & multicolumn{1}{c}{SS} & multicolumn{1}{c}{DOF} & multicolumn{1}{c}{MS} & multicolumn{1}{c}{F} & multicolumn{1}{c}{%SS} \
toprule
A & 15.84 & 1 & 15.84 & multicolumn{1}{B{.}{.}{-1}} {17.89}tnote{*} & multicolumn{1}{B{.}{.}{-1}}{10.29}tnote{textdagger} \
B & 64.33 & 1 & 64.33 & multicolumn{1}{B{.}{.}{-1}}{72.69} & multicolumn{1}{B{.}{.}{-1}}{41.82} \
C & 22.43 & 1 & 22.43 & multicolumn{1}{B{.}{.}{-1}}{25.34} & multicolumn{1}{B{.}{.}{-1}}{14.58}\
D & 1.50 & 1 & 1.50 & 1.70 & 0.98 \
addlinespace
A$times$B & 22.49 & 1 & 22.49 &multicolumn{1}{B{.}{.}{-1}}{25.41} & multicolumn{1}{B{.}{.}{-1}}{14.62}\
A$times$C & 3.29 & 1 & 3.29 & 3.72 &2.14 \
A$times$D & 3.44 & 1 & 3.44 & 3.88 & 2.23\
B$times$C & 7.02 & 1& 7.02 & multicolumn{1}{B{.}{.}{-1}}{7.93} & 4.56\
B$times$D & 6.94 & 1 & 6.94 & multicolumn{1}{B{.}{.}{-1}}{7.84} & 4.51\
C$times$D & 2.13 & 1 & 2.13 & 2.41 & 1.38\
addlinespace
Error & 4.43 & 5 & 0.89 & & \
addlinespace
Total & 153.82 & 15 & & & \
bottomrule
end{tabular}
begin{tablenotes}
item [*] Bold entries in the F ratio column designate values greater than an Ftextsubscript{cr} of 6.61 at a confidence limit of P = 95.
item [textdagger] Bold entries denote %SS values greater than 10% of the total SS.
end{tablenotes}
end{threeparttable}
end{table}
endminipage
}
end{document}
standalone png export powerpoint
I'm attempting to use the standalone package to create large tables to import to Microsoft PowerPoint. When I have attempted to use the 'size' and 'density' commands, the image looks very blurry after importing to PowerPoint. I have only been able to increase the table size by increasing the font size, which changes the dimensions and reduces the weight of midrule
etc. I apologize for any faux pas, this is my first post.
documentclass[convert={size=1080,outext=.png},border=5]{standalone}
usepackage{standalone,tikz,booktabs,mathtools,threeparttable,dcolumn,bold-extra,caption,siunitx,multirow,upgreek,fixltx2e,float,xfrac,graphicx,anyfontsize}
begin{document}
{fontsize{42}{50}selectfont
minipage{2.5linewidth}
newcolumntype{.}{D{.}{.}{-1}}
makeatletter
newcolumntype{B}[3]{>{boldmathDC@{#1}{#2}{#3}}c<{DC@end}}
makeatother
begin{table}[H]
centering
begin{threeparttable}
begin{tabular}{ l . . . . . }
toprule
Source & multicolumn{1}{c}{SS} & multicolumn{1}{c}{DOF} & multicolumn{1}{c}{MS} & multicolumn{1}{c}{F} & multicolumn{1}{c}{%SS} \
toprule
A & 15.84 & 1 & 15.84 & multicolumn{1}{B{.}{.}{-1}} {17.89}tnote{*} & multicolumn{1}{B{.}{.}{-1}}{10.29}tnote{textdagger} \
B & 64.33 & 1 & 64.33 & multicolumn{1}{B{.}{.}{-1}}{72.69} & multicolumn{1}{B{.}{.}{-1}}{41.82} \
C & 22.43 & 1 & 22.43 & multicolumn{1}{B{.}{.}{-1}}{25.34} & multicolumn{1}{B{.}{.}{-1}}{14.58}\
D & 1.50 & 1 & 1.50 & 1.70 & 0.98 \
addlinespace
A$times$B & 22.49 & 1 & 22.49 &multicolumn{1}{B{.}{.}{-1}}{25.41} & multicolumn{1}{B{.}{.}{-1}}{14.62}\
A$times$C & 3.29 & 1 & 3.29 & 3.72 &2.14 \
A$times$D & 3.44 & 1 & 3.44 & 3.88 & 2.23\
B$times$C & 7.02 & 1& 7.02 & multicolumn{1}{B{.}{.}{-1}}{7.93} & 4.56\
B$times$D & 6.94 & 1 & 6.94 & multicolumn{1}{B{.}{.}{-1}}{7.84} & 4.51\
C$times$D & 2.13 & 1 & 2.13 & 2.41 & 1.38\
addlinespace
Error & 4.43 & 5 & 0.89 & & \
addlinespace
Total & 153.82 & 15 & & & \
bottomrule
end{tabular}
begin{tablenotes}
item [*] Bold entries in the F ratio column designate values greater than an Ftextsubscript{cr} of 6.61 at a confidence limit of P = 95.
item [textdagger] Bold entries denote %SS values greater than 10% of the total SS.
end{tablenotes}
end{threeparttable}
end{table}
endminipage
}
end{document}
standalone png export powerpoint
standalone png export powerpoint
edited 42 mins ago
Martin Scharrer♦
199k45632816
199k45632816
asked Oct 28 '15 at 6:12
Lucca GiannechiniLucca Giannechini
161
161
2
powerpoint won't takepng
as such. It will try to convert it first to some other acceptible format likejpg
. In this process your resolution may be lost. So, convert directly to.jp
usingsize=1080,outext=.jpg
and try to insert. Don't scale fonts, but scale the image in powerpoint. Best way is to usebeamer
, say bye bye to power point.
– user11232
Oct 28 '15 at 6:29
Unfortunately that didn't work either. To be more explicit, I'm just dragging the LaTeX output .pdf into the PowerPoint, don't know if that was incorrect. I'll look into beamer, but this presentation is due in two days and I don't want to mess around with it with such little time.
– Lucca Giannechini
Oct 28 '15 at 6:39
Dragging should not be done. You should useinsert
function of power point. Use a jpg image directly. Don't allow power point to convert.
– user11232
Oct 28 '15 at 6:47
I might be doing something wrong then, because no .jpg file is created, only the standard .pdf. Is standalone supposed to create a second .jpg file?
– Lucca Giannechini
Oct 28 '15 at 7:15
You will needimagemagick
installed for that. I converted your table in to jpg and inserted in to power point and it looks alright. I didn't use large fonts.
– user11232
Oct 28 '15 at 7:17
|
show 4 more comments
2
powerpoint won't takepng
as such. It will try to convert it first to some other acceptible format likejpg
. In this process your resolution may be lost. So, convert directly to.jp
usingsize=1080,outext=.jpg
and try to insert. Don't scale fonts, but scale the image in powerpoint. Best way is to usebeamer
, say bye bye to power point.
– user11232
Oct 28 '15 at 6:29
Unfortunately that didn't work either. To be more explicit, I'm just dragging the LaTeX output .pdf into the PowerPoint, don't know if that was incorrect. I'll look into beamer, but this presentation is due in two days and I don't want to mess around with it with such little time.
– Lucca Giannechini
Oct 28 '15 at 6:39
Dragging should not be done. You should useinsert
function of power point. Use a jpg image directly. Don't allow power point to convert.
– user11232
Oct 28 '15 at 6:47
I might be doing something wrong then, because no .jpg file is created, only the standard .pdf. Is standalone supposed to create a second .jpg file?
– Lucca Giannechini
Oct 28 '15 at 7:15
You will needimagemagick
installed for that. I converted your table in to jpg and inserted in to power point and it looks alright. I didn't use large fonts.
– user11232
Oct 28 '15 at 7:17
2
2
powerpoint won't take
png
as such. It will try to convert it first to some other acceptible format like jpg
. In this process your resolution may be lost. So, convert directly to .jp
using size=1080,outext=.jpg
and try to insert. Don't scale fonts, but scale the image in powerpoint. Best way is to use beamer
, say bye bye to power point.– user11232
Oct 28 '15 at 6:29
powerpoint won't take
png
as such. It will try to convert it first to some other acceptible format like jpg
. In this process your resolution may be lost. So, convert directly to .jp
using size=1080,outext=.jpg
and try to insert. Don't scale fonts, but scale the image in powerpoint. Best way is to use beamer
, say bye bye to power point.– user11232
Oct 28 '15 at 6:29
Unfortunately that didn't work either. To be more explicit, I'm just dragging the LaTeX output .pdf into the PowerPoint, don't know if that was incorrect. I'll look into beamer, but this presentation is due in two days and I don't want to mess around with it with such little time.
– Lucca Giannechini
Oct 28 '15 at 6:39
Unfortunately that didn't work either. To be more explicit, I'm just dragging the LaTeX output .pdf into the PowerPoint, don't know if that was incorrect. I'll look into beamer, but this presentation is due in two days and I don't want to mess around with it with such little time.
– Lucca Giannechini
Oct 28 '15 at 6:39
Dragging should not be done. You should use
insert
function of power point. Use a jpg image directly. Don't allow power point to convert.– user11232
Oct 28 '15 at 6:47
Dragging should not be done. You should use
insert
function of power point. Use a jpg image directly. Don't allow power point to convert.– user11232
Oct 28 '15 at 6:47
I might be doing something wrong then, because no .jpg file is created, only the standard .pdf. Is standalone supposed to create a second .jpg file?
– Lucca Giannechini
Oct 28 '15 at 7:15
I might be doing something wrong then, because no .jpg file is created, only the standard .pdf. Is standalone supposed to create a second .jpg file?
– Lucca Giannechini
Oct 28 '15 at 7:15
You will need
imagemagick
installed for that. I converted your table in to jpg and inserted in to power point and it looks alright. I didn't use large fonts.– user11232
Oct 28 '15 at 7:17
You will need
imagemagick
installed for that. I converted your table in to jpg and inserted in to power point and it looks alright. I didn't use large fonts.– user11232
Oct 28 '15 at 7:17
|
show 4 more comments
3 Answers
3
active
oldest
votes
I found a solution for bold faced numbers aligning. It is described in Josip W. article on page 73. I adopt it to @Mico solution as:
documentclass[preview,border=1pt]{standalone}
usepackage{booktabs,threeparttable,caption,siunitx}
usepackage{etoolbox}% <-- new
newcommand{ubold}{fontseries{b}selectfont} % renew def. for non-extended bold font
robustifyubold% <-- new
begin{document}
begin{table}
centering
begin{threeparttable}
caption{Table Caption}
begin{tabular}{ l S[table-format=3.2]
S[table-format=2.1] % <-- corrected
*{3}{S[detect-weight,table-format=2.2]} }% <-- new
toprule
Source & {SS} & {DOF} & {MS} & {Ftnote{*}} & {%SStnote{textdagger}} \
midrule
A & 15.84 & 1 & 15.84 & ubold 17.89 & ubold 10.29\% <-- see new way of use of ubold
B & 64.33 & 1 & 64.33 & ubold 72.69 & ubold 41.82\
C & 22.43 & 1 & 22.43 & ubold 25.34 & ubold 14.58\
D & 1.50 & 1 & 1.50 & 1.70 & 0.98 \
addlinespace
A$times$B & 22.49 & 1 &22.49 & ubold 25.41 & ubold 14.62\
A$times$C & 3.29 & 1 & 3.29 & 3.72 & 2.14 \
A$times$D & 3.44 & 1 & 3.44 & 3.88 & 2.23 \
B$times$C & 7.02 & 1 & 7.02 & ubold 7.93 & 4.56 \
B$times$D & 6.94 & 1 & 6.94 & ubold 7.84 & 4.51 \
C$times$D & 2.13 & 1 & 2.13 & 2.41 & 1.38 \
addlinespace
Error & 4.43 & 5 & 0.89 \
addlinespace
Total & 153.82 & 15 \
bottomrule
end{tabular}
smallskip
begin{tablenotes}
footnotesize
item[*] Bold entries in the F column denote values greater than an Ftextsubscript{cr} of 6.61 at a confidence level of $P = SI{95}{%}$.
item[textdagger] Bold entries in the %SS column denote values greater than SI{10}{%} of the total SS.
end{tablenotes}
end{threeparttable}
end{table}
end{document}
As can be seen, I add package etoolbox
for macro rustify
, change nice definition for boldface font and adequately change its use in selected cells. Now the table is:
Edit: Since I do not use PowerPoint, I don't know for all possibilities how to import LaTeX generated table into it. I test to include table as jpg
picture, obtained by pdf to jpg conversion with services of web page pdf2jpg.net with selected pixel resolution 300 dpi. I'm satisfied with its results:
For above picture i change preamble of file and table as follows:
documentclass[border=1mm,
12pt,% <-- bigger base fonts
prewiev]{standalone}
usepackage{booktabs,threeparttable,caption,siunitx}
usepackage{etoolbox}
newcommand{ubold}{fontseries{b}selectfont} % renew def. for non-extended bold font
robustifyubold
begin{document}
begin{table}
centering
Large % or Large or huge, select on trial basis
setlength{tabcolsep}{9pt}% for bigger distance between column
begin{threeparttable}
caption{Table Caption}
begin{tabular}{ l S[table-format=3.2]
S[table-format=2.1]
*{3}{S[detect-weight,table-format=2.2]} }%
toprule
...
Original table width was 12.01 cm. I manually enlarge this to 16 cm. Result you can see on above snippet of PowerPoint editor. Hope this gives some ideas, what you can do.
Anyway, in the first place I gives more attention how to generate nice looking table in LaTeX. By the way, if you include LaTeX table in PowerPoint, is not very sensible make table title in LaTeX, better is to do this in PowerPoint.
Ingenious use ofrobustify
. Oddly, though, the bold font that ends up being used is the "standard", i.e., "bold extended" CM font rather than the "un-extended" version. This behavior also occurs under MacTeX2015.
– Mico
Oct 28 '15 at 13:17
i dont know if it happened only for me, but compilation failed and got the errorPackage array Error: Illegal pream-token (-): c used.
, in fact several other errors too.
– SAM
Jul 7 '16 at 10:21
@SAM, indeed ... now I see, that I forgot to add%
before<-- corrected
. Now the code is corrected and works (tested).
– Zarko
Jul 7 '16 at 11:10
add a comment |
I'm not sure what the resizing is about. I would use a "normal" standalone
document class and resize the table inside powerpoint. I would recommend, though, that you use a non-extended bold font for the numbers in the table; doing so will make it much easier to "line" up the numbers, visually speaking.
In the code below, I use the facilities of the siunitx
package to achieve alignment of the numbers on the decimal markers.
documentclass[preview,border=1pt]{standalone}
usepackage{booktabs,threeparttable,caption,siunitx}
begin{document}
begin{table}
newcommand{ubold}[1]{fontseries{b}selectfont#1} % non-extended bold font
centering
begin{threeparttable}
caption{Table Caption}
begin{tabular}{ l S[table-format=3.2]
S[table-format=2.0]
*{3}{S[table-format=2.2]} }
toprule
Source & {SS} & {DOF} & {MS} & {Ftnote{*}} & {%SStnote{textdagger}} \
midrule
A & 15.84 & 1 & 15.84 & ubold{17.89} & ubold{10.29}\
B & 64.33 & 1 & 64.33 & ubold{72.69} & ubold{41.82}\
C & 22.43 & 1 & 22.43 & ubold{25.34} & ubold{14.58}\
D & 1.50 & 1 & 1.50 & 1.70 & 0.98 \
addlinespace
A$times$B & 22.49 & 1 &22.49 & ubold{25.41} & ubold{14.62}\
A$times$C & 3.29 & 1 & 3.29 & 3.72 & 2.14 \
A$times$D & 3.44 & 1 & 3.44 & 3.88 & 2.23 \
B$times$C & 7.02 & 1 & 7.02 & ubold{7.93} & 4.56 \
B$times$D & 6.94 & 1 & 6.94 & ubold{7.84} & 4.51 \
C$times$D & 2.13 & 1 & 2.13 & 2.41 & 1.38 \
addlinespace
Error & 4.43 & 5 & 0.89 \
addlinespace
Total & 153.82 & 15 \
bottomrule
end{tabular}
smallskip
begin{tablenotes}
footnotesize
item[*] Bold entries in the F column denote values greater than an Ftextsubscript{cr} of 6.61 at a confidence level of $P = 95%$.
item[textdagger] Bold entries in the %SS column denote values greater than 10% of the total SS.
end{tablenotes}
end{threeparttable}
end{table}
end{document}
nice solution, however theubold
numbers are not aligned at decimal point: see column before last one (numbers7.93
and7.84
).
– Zarko
Oct 28 '15 at 7:59
@Zarko - Yeah, I noticed that too. Not sure what's going on; it may be a bug in thesiunitx
package. For sure, the problem isn't caused byubold
-- it arises withtextbf{...}
andbfseries
as well. I'll need to write to Joseph W. to ask if this is a bug.
– Mico
Oct 28 '15 at 8:06
@Zarko - I can get that size to print, but what I'm concerned about is the projection getting blurry. Is it possible to make the image larger, it appears that any changes I make to the size or density have no effect on the final image. Also, I'm attempting to do this with about 5 tables, so I'm trying to keep the formatting generalizable.
– Lucca Giannechini
Oct 28 '15 at 8:13
@Mico, I foggy remember, that this was issues ones on SE, and solution was use option, how to parse a number (I'm not sure). Anyway, it will be nice, if such issues will be emphasized in siunitx manual. Please ask Joseph W. for this too.
– Zarko
Oct 28 '15 at 8:24
@LuccaGiannechini, my test show clear and crisp normal and bold faced numbers. As I mentioned, only aligning of bold numbers doesn't obey decimal point but are aligned to the left of declared integer part of number.
– Zarko
Oct 28 '15 at 8:28
|
show 4 more comments
If you use size
AND density
options of convert
then the PDF is rastered to a PNG with the given density and afterwards resized to the requested size, which makes larger density setting ineffective again. I would simply recommend to drop the size
setting and only use a suitable density. I would start with 600 (dpi) and go from there up or down as needed.
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/3.0/"u003ecc by-sa 3.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
});
}
});
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%2f275324%2fresizing-standalone-table-for-image-inclusion-into-powerpoint%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I found a solution for bold faced numbers aligning. It is described in Josip W. article on page 73. I adopt it to @Mico solution as:
documentclass[preview,border=1pt]{standalone}
usepackage{booktabs,threeparttable,caption,siunitx}
usepackage{etoolbox}% <-- new
newcommand{ubold}{fontseries{b}selectfont} % renew def. for non-extended bold font
robustifyubold% <-- new
begin{document}
begin{table}
centering
begin{threeparttable}
caption{Table Caption}
begin{tabular}{ l S[table-format=3.2]
S[table-format=2.1] % <-- corrected
*{3}{S[detect-weight,table-format=2.2]} }% <-- new
toprule
Source & {SS} & {DOF} & {MS} & {Ftnote{*}} & {%SStnote{textdagger}} \
midrule
A & 15.84 & 1 & 15.84 & ubold 17.89 & ubold 10.29\% <-- see new way of use of ubold
B & 64.33 & 1 & 64.33 & ubold 72.69 & ubold 41.82\
C & 22.43 & 1 & 22.43 & ubold 25.34 & ubold 14.58\
D & 1.50 & 1 & 1.50 & 1.70 & 0.98 \
addlinespace
A$times$B & 22.49 & 1 &22.49 & ubold 25.41 & ubold 14.62\
A$times$C & 3.29 & 1 & 3.29 & 3.72 & 2.14 \
A$times$D & 3.44 & 1 & 3.44 & 3.88 & 2.23 \
B$times$C & 7.02 & 1 & 7.02 & ubold 7.93 & 4.56 \
B$times$D & 6.94 & 1 & 6.94 & ubold 7.84 & 4.51 \
C$times$D & 2.13 & 1 & 2.13 & 2.41 & 1.38 \
addlinespace
Error & 4.43 & 5 & 0.89 \
addlinespace
Total & 153.82 & 15 \
bottomrule
end{tabular}
smallskip
begin{tablenotes}
footnotesize
item[*] Bold entries in the F column denote values greater than an Ftextsubscript{cr} of 6.61 at a confidence level of $P = SI{95}{%}$.
item[textdagger] Bold entries in the %SS column denote values greater than SI{10}{%} of the total SS.
end{tablenotes}
end{threeparttable}
end{table}
end{document}
As can be seen, I add package etoolbox
for macro rustify
, change nice definition for boldface font and adequately change its use in selected cells. Now the table is:
Edit: Since I do not use PowerPoint, I don't know for all possibilities how to import LaTeX generated table into it. I test to include table as jpg
picture, obtained by pdf to jpg conversion with services of web page pdf2jpg.net with selected pixel resolution 300 dpi. I'm satisfied with its results:
For above picture i change preamble of file and table as follows:
documentclass[border=1mm,
12pt,% <-- bigger base fonts
prewiev]{standalone}
usepackage{booktabs,threeparttable,caption,siunitx}
usepackage{etoolbox}
newcommand{ubold}{fontseries{b}selectfont} % renew def. for non-extended bold font
robustifyubold
begin{document}
begin{table}
centering
Large % or Large or huge, select on trial basis
setlength{tabcolsep}{9pt}% for bigger distance between column
begin{threeparttable}
caption{Table Caption}
begin{tabular}{ l S[table-format=3.2]
S[table-format=2.1]
*{3}{S[detect-weight,table-format=2.2]} }%
toprule
...
Original table width was 12.01 cm. I manually enlarge this to 16 cm. Result you can see on above snippet of PowerPoint editor. Hope this gives some ideas, what you can do.
Anyway, in the first place I gives more attention how to generate nice looking table in LaTeX. By the way, if you include LaTeX table in PowerPoint, is not very sensible make table title in LaTeX, better is to do this in PowerPoint.
Ingenious use ofrobustify
. Oddly, though, the bold font that ends up being used is the "standard", i.e., "bold extended" CM font rather than the "un-extended" version. This behavior also occurs under MacTeX2015.
– Mico
Oct 28 '15 at 13:17
i dont know if it happened only for me, but compilation failed and got the errorPackage array Error: Illegal pream-token (-): c used.
, in fact several other errors too.
– SAM
Jul 7 '16 at 10:21
@SAM, indeed ... now I see, that I forgot to add%
before<-- corrected
. Now the code is corrected and works (tested).
– Zarko
Jul 7 '16 at 11:10
add a comment |
I found a solution for bold faced numbers aligning. It is described in Josip W. article on page 73. I adopt it to @Mico solution as:
documentclass[preview,border=1pt]{standalone}
usepackage{booktabs,threeparttable,caption,siunitx}
usepackage{etoolbox}% <-- new
newcommand{ubold}{fontseries{b}selectfont} % renew def. for non-extended bold font
robustifyubold% <-- new
begin{document}
begin{table}
centering
begin{threeparttable}
caption{Table Caption}
begin{tabular}{ l S[table-format=3.2]
S[table-format=2.1] % <-- corrected
*{3}{S[detect-weight,table-format=2.2]} }% <-- new
toprule
Source & {SS} & {DOF} & {MS} & {Ftnote{*}} & {%SStnote{textdagger}} \
midrule
A & 15.84 & 1 & 15.84 & ubold 17.89 & ubold 10.29\% <-- see new way of use of ubold
B & 64.33 & 1 & 64.33 & ubold 72.69 & ubold 41.82\
C & 22.43 & 1 & 22.43 & ubold 25.34 & ubold 14.58\
D & 1.50 & 1 & 1.50 & 1.70 & 0.98 \
addlinespace
A$times$B & 22.49 & 1 &22.49 & ubold 25.41 & ubold 14.62\
A$times$C & 3.29 & 1 & 3.29 & 3.72 & 2.14 \
A$times$D & 3.44 & 1 & 3.44 & 3.88 & 2.23 \
B$times$C & 7.02 & 1 & 7.02 & ubold 7.93 & 4.56 \
B$times$D & 6.94 & 1 & 6.94 & ubold 7.84 & 4.51 \
C$times$D & 2.13 & 1 & 2.13 & 2.41 & 1.38 \
addlinespace
Error & 4.43 & 5 & 0.89 \
addlinespace
Total & 153.82 & 15 \
bottomrule
end{tabular}
smallskip
begin{tablenotes}
footnotesize
item[*] Bold entries in the F column denote values greater than an Ftextsubscript{cr} of 6.61 at a confidence level of $P = SI{95}{%}$.
item[textdagger] Bold entries in the %SS column denote values greater than SI{10}{%} of the total SS.
end{tablenotes}
end{threeparttable}
end{table}
end{document}
As can be seen, I add package etoolbox
for macro rustify
, change nice definition for boldface font and adequately change its use in selected cells. Now the table is:
Edit: Since I do not use PowerPoint, I don't know for all possibilities how to import LaTeX generated table into it. I test to include table as jpg
picture, obtained by pdf to jpg conversion with services of web page pdf2jpg.net with selected pixel resolution 300 dpi. I'm satisfied with its results:
For above picture i change preamble of file and table as follows:
documentclass[border=1mm,
12pt,% <-- bigger base fonts
prewiev]{standalone}
usepackage{booktabs,threeparttable,caption,siunitx}
usepackage{etoolbox}
newcommand{ubold}{fontseries{b}selectfont} % renew def. for non-extended bold font
robustifyubold
begin{document}
begin{table}
centering
Large % or Large or huge, select on trial basis
setlength{tabcolsep}{9pt}% for bigger distance between column
begin{threeparttable}
caption{Table Caption}
begin{tabular}{ l S[table-format=3.2]
S[table-format=2.1]
*{3}{S[detect-weight,table-format=2.2]} }%
toprule
...
Original table width was 12.01 cm. I manually enlarge this to 16 cm. Result you can see on above snippet of PowerPoint editor. Hope this gives some ideas, what you can do.
Anyway, in the first place I gives more attention how to generate nice looking table in LaTeX. By the way, if you include LaTeX table in PowerPoint, is not very sensible make table title in LaTeX, better is to do this in PowerPoint.
Ingenious use ofrobustify
. Oddly, though, the bold font that ends up being used is the "standard", i.e., "bold extended" CM font rather than the "un-extended" version. This behavior also occurs under MacTeX2015.
– Mico
Oct 28 '15 at 13:17
i dont know if it happened only for me, but compilation failed and got the errorPackage array Error: Illegal pream-token (-): c used.
, in fact several other errors too.
– SAM
Jul 7 '16 at 10:21
@SAM, indeed ... now I see, that I forgot to add%
before<-- corrected
. Now the code is corrected and works (tested).
– Zarko
Jul 7 '16 at 11:10
add a comment |
I found a solution for bold faced numbers aligning. It is described in Josip W. article on page 73. I adopt it to @Mico solution as:
documentclass[preview,border=1pt]{standalone}
usepackage{booktabs,threeparttable,caption,siunitx}
usepackage{etoolbox}% <-- new
newcommand{ubold}{fontseries{b}selectfont} % renew def. for non-extended bold font
robustifyubold% <-- new
begin{document}
begin{table}
centering
begin{threeparttable}
caption{Table Caption}
begin{tabular}{ l S[table-format=3.2]
S[table-format=2.1] % <-- corrected
*{3}{S[detect-weight,table-format=2.2]} }% <-- new
toprule
Source & {SS} & {DOF} & {MS} & {Ftnote{*}} & {%SStnote{textdagger}} \
midrule
A & 15.84 & 1 & 15.84 & ubold 17.89 & ubold 10.29\% <-- see new way of use of ubold
B & 64.33 & 1 & 64.33 & ubold 72.69 & ubold 41.82\
C & 22.43 & 1 & 22.43 & ubold 25.34 & ubold 14.58\
D & 1.50 & 1 & 1.50 & 1.70 & 0.98 \
addlinespace
A$times$B & 22.49 & 1 &22.49 & ubold 25.41 & ubold 14.62\
A$times$C & 3.29 & 1 & 3.29 & 3.72 & 2.14 \
A$times$D & 3.44 & 1 & 3.44 & 3.88 & 2.23 \
B$times$C & 7.02 & 1 & 7.02 & ubold 7.93 & 4.56 \
B$times$D & 6.94 & 1 & 6.94 & ubold 7.84 & 4.51 \
C$times$D & 2.13 & 1 & 2.13 & 2.41 & 1.38 \
addlinespace
Error & 4.43 & 5 & 0.89 \
addlinespace
Total & 153.82 & 15 \
bottomrule
end{tabular}
smallskip
begin{tablenotes}
footnotesize
item[*] Bold entries in the F column denote values greater than an Ftextsubscript{cr} of 6.61 at a confidence level of $P = SI{95}{%}$.
item[textdagger] Bold entries in the %SS column denote values greater than SI{10}{%} of the total SS.
end{tablenotes}
end{threeparttable}
end{table}
end{document}
As can be seen, I add package etoolbox
for macro rustify
, change nice definition for boldface font and adequately change its use in selected cells. Now the table is:
Edit: Since I do not use PowerPoint, I don't know for all possibilities how to import LaTeX generated table into it. I test to include table as jpg
picture, obtained by pdf to jpg conversion with services of web page pdf2jpg.net with selected pixel resolution 300 dpi. I'm satisfied with its results:
For above picture i change preamble of file and table as follows:
documentclass[border=1mm,
12pt,% <-- bigger base fonts
prewiev]{standalone}
usepackage{booktabs,threeparttable,caption,siunitx}
usepackage{etoolbox}
newcommand{ubold}{fontseries{b}selectfont} % renew def. for non-extended bold font
robustifyubold
begin{document}
begin{table}
centering
Large % or Large or huge, select on trial basis
setlength{tabcolsep}{9pt}% for bigger distance between column
begin{threeparttable}
caption{Table Caption}
begin{tabular}{ l S[table-format=3.2]
S[table-format=2.1]
*{3}{S[detect-weight,table-format=2.2]} }%
toprule
...
Original table width was 12.01 cm. I manually enlarge this to 16 cm. Result you can see on above snippet of PowerPoint editor. Hope this gives some ideas, what you can do.
Anyway, in the first place I gives more attention how to generate nice looking table in LaTeX. By the way, if you include LaTeX table in PowerPoint, is not very sensible make table title in LaTeX, better is to do this in PowerPoint.
I found a solution for bold faced numbers aligning. It is described in Josip W. article on page 73. I adopt it to @Mico solution as:
documentclass[preview,border=1pt]{standalone}
usepackage{booktabs,threeparttable,caption,siunitx}
usepackage{etoolbox}% <-- new
newcommand{ubold}{fontseries{b}selectfont} % renew def. for non-extended bold font
robustifyubold% <-- new
begin{document}
begin{table}
centering
begin{threeparttable}
caption{Table Caption}
begin{tabular}{ l S[table-format=3.2]
S[table-format=2.1] % <-- corrected
*{3}{S[detect-weight,table-format=2.2]} }% <-- new
toprule
Source & {SS} & {DOF} & {MS} & {Ftnote{*}} & {%SStnote{textdagger}} \
midrule
A & 15.84 & 1 & 15.84 & ubold 17.89 & ubold 10.29\% <-- see new way of use of ubold
B & 64.33 & 1 & 64.33 & ubold 72.69 & ubold 41.82\
C & 22.43 & 1 & 22.43 & ubold 25.34 & ubold 14.58\
D & 1.50 & 1 & 1.50 & 1.70 & 0.98 \
addlinespace
A$times$B & 22.49 & 1 &22.49 & ubold 25.41 & ubold 14.62\
A$times$C & 3.29 & 1 & 3.29 & 3.72 & 2.14 \
A$times$D & 3.44 & 1 & 3.44 & 3.88 & 2.23 \
B$times$C & 7.02 & 1 & 7.02 & ubold 7.93 & 4.56 \
B$times$D & 6.94 & 1 & 6.94 & ubold 7.84 & 4.51 \
C$times$D & 2.13 & 1 & 2.13 & 2.41 & 1.38 \
addlinespace
Error & 4.43 & 5 & 0.89 \
addlinespace
Total & 153.82 & 15 \
bottomrule
end{tabular}
smallskip
begin{tablenotes}
footnotesize
item[*] Bold entries in the F column denote values greater than an Ftextsubscript{cr} of 6.61 at a confidence level of $P = SI{95}{%}$.
item[textdagger] Bold entries in the %SS column denote values greater than SI{10}{%} of the total SS.
end{tablenotes}
end{threeparttable}
end{table}
end{document}
As can be seen, I add package etoolbox
for macro rustify
, change nice definition for boldface font and adequately change its use in selected cells. Now the table is:
Edit: Since I do not use PowerPoint, I don't know for all possibilities how to import LaTeX generated table into it. I test to include table as jpg
picture, obtained by pdf to jpg conversion with services of web page pdf2jpg.net with selected pixel resolution 300 dpi. I'm satisfied with its results:
For above picture i change preamble of file and table as follows:
documentclass[border=1mm,
12pt,% <-- bigger base fonts
prewiev]{standalone}
usepackage{booktabs,threeparttable,caption,siunitx}
usepackage{etoolbox}
newcommand{ubold}{fontseries{b}selectfont} % renew def. for non-extended bold font
robustifyubold
begin{document}
begin{table}
centering
Large % or Large or huge, select on trial basis
setlength{tabcolsep}{9pt}% for bigger distance between column
begin{threeparttable}
caption{Table Caption}
begin{tabular}{ l S[table-format=3.2]
S[table-format=2.1]
*{3}{S[detect-weight,table-format=2.2]} }%
toprule
...
Original table width was 12.01 cm. I manually enlarge this to 16 cm. Result you can see on above snippet of PowerPoint editor. Hope this gives some ideas, what you can do.
Anyway, in the first place I gives more attention how to generate nice looking table in LaTeX. By the way, if you include LaTeX table in PowerPoint, is not very sensible make table title in LaTeX, better is to do this in PowerPoint.
edited Jul 7 '16 at 11:13
answered Oct 28 '15 at 9:46
ZarkoZarko
121k865158
121k865158
Ingenious use ofrobustify
. Oddly, though, the bold font that ends up being used is the "standard", i.e., "bold extended" CM font rather than the "un-extended" version. This behavior also occurs under MacTeX2015.
– Mico
Oct 28 '15 at 13:17
i dont know if it happened only for me, but compilation failed and got the errorPackage array Error: Illegal pream-token (-): c used.
, in fact several other errors too.
– SAM
Jul 7 '16 at 10:21
@SAM, indeed ... now I see, that I forgot to add%
before<-- corrected
. Now the code is corrected and works (tested).
– Zarko
Jul 7 '16 at 11:10
add a comment |
Ingenious use ofrobustify
. Oddly, though, the bold font that ends up being used is the "standard", i.e., "bold extended" CM font rather than the "un-extended" version. This behavior also occurs under MacTeX2015.
– Mico
Oct 28 '15 at 13:17
i dont know if it happened only for me, but compilation failed and got the errorPackage array Error: Illegal pream-token (-): c used.
, in fact several other errors too.
– SAM
Jul 7 '16 at 10:21
@SAM, indeed ... now I see, that I forgot to add%
before<-- corrected
. Now the code is corrected and works (tested).
– Zarko
Jul 7 '16 at 11:10
Ingenious use of
robustify
. Oddly, though, the bold font that ends up being used is the "standard", i.e., "bold extended" CM font rather than the "un-extended" version. This behavior also occurs under MacTeX2015.– Mico
Oct 28 '15 at 13:17
Ingenious use of
robustify
. Oddly, though, the bold font that ends up being used is the "standard", i.e., "bold extended" CM font rather than the "un-extended" version. This behavior also occurs under MacTeX2015.– Mico
Oct 28 '15 at 13:17
i dont know if it happened only for me, but compilation failed and got the error
Package array Error: Illegal pream-token (-): c used.
, in fact several other errors too.– SAM
Jul 7 '16 at 10:21
i dont know if it happened only for me, but compilation failed and got the error
Package array Error: Illegal pream-token (-): c used.
, in fact several other errors too.– SAM
Jul 7 '16 at 10:21
@SAM, indeed ... now I see, that I forgot to add
%
before <-- corrected
. Now the code is corrected and works (tested).– Zarko
Jul 7 '16 at 11:10
@SAM, indeed ... now I see, that I forgot to add
%
before <-- corrected
. Now the code is corrected and works (tested).– Zarko
Jul 7 '16 at 11:10
add a comment |
I'm not sure what the resizing is about. I would use a "normal" standalone
document class and resize the table inside powerpoint. I would recommend, though, that you use a non-extended bold font for the numbers in the table; doing so will make it much easier to "line" up the numbers, visually speaking.
In the code below, I use the facilities of the siunitx
package to achieve alignment of the numbers on the decimal markers.
documentclass[preview,border=1pt]{standalone}
usepackage{booktabs,threeparttable,caption,siunitx}
begin{document}
begin{table}
newcommand{ubold}[1]{fontseries{b}selectfont#1} % non-extended bold font
centering
begin{threeparttable}
caption{Table Caption}
begin{tabular}{ l S[table-format=3.2]
S[table-format=2.0]
*{3}{S[table-format=2.2]} }
toprule
Source & {SS} & {DOF} & {MS} & {Ftnote{*}} & {%SStnote{textdagger}} \
midrule
A & 15.84 & 1 & 15.84 & ubold{17.89} & ubold{10.29}\
B & 64.33 & 1 & 64.33 & ubold{72.69} & ubold{41.82}\
C & 22.43 & 1 & 22.43 & ubold{25.34} & ubold{14.58}\
D & 1.50 & 1 & 1.50 & 1.70 & 0.98 \
addlinespace
A$times$B & 22.49 & 1 &22.49 & ubold{25.41} & ubold{14.62}\
A$times$C & 3.29 & 1 & 3.29 & 3.72 & 2.14 \
A$times$D & 3.44 & 1 & 3.44 & 3.88 & 2.23 \
B$times$C & 7.02 & 1 & 7.02 & ubold{7.93} & 4.56 \
B$times$D & 6.94 & 1 & 6.94 & ubold{7.84} & 4.51 \
C$times$D & 2.13 & 1 & 2.13 & 2.41 & 1.38 \
addlinespace
Error & 4.43 & 5 & 0.89 \
addlinespace
Total & 153.82 & 15 \
bottomrule
end{tabular}
smallskip
begin{tablenotes}
footnotesize
item[*] Bold entries in the F column denote values greater than an Ftextsubscript{cr} of 6.61 at a confidence level of $P = 95%$.
item[textdagger] Bold entries in the %SS column denote values greater than 10% of the total SS.
end{tablenotes}
end{threeparttable}
end{table}
end{document}
nice solution, however theubold
numbers are not aligned at decimal point: see column before last one (numbers7.93
and7.84
).
– Zarko
Oct 28 '15 at 7:59
@Zarko - Yeah, I noticed that too. Not sure what's going on; it may be a bug in thesiunitx
package. For sure, the problem isn't caused byubold
-- it arises withtextbf{...}
andbfseries
as well. I'll need to write to Joseph W. to ask if this is a bug.
– Mico
Oct 28 '15 at 8:06
@Zarko - I can get that size to print, but what I'm concerned about is the projection getting blurry. Is it possible to make the image larger, it appears that any changes I make to the size or density have no effect on the final image. Also, I'm attempting to do this with about 5 tables, so I'm trying to keep the formatting generalizable.
– Lucca Giannechini
Oct 28 '15 at 8:13
@Mico, I foggy remember, that this was issues ones on SE, and solution was use option, how to parse a number (I'm not sure). Anyway, it will be nice, if such issues will be emphasized in siunitx manual. Please ask Joseph W. for this too.
– Zarko
Oct 28 '15 at 8:24
@LuccaGiannechini, my test show clear and crisp normal and bold faced numbers. As I mentioned, only aligning of bold numbers doesn't obey decimal point but are aligned to the left of declared integer part of number.
– Zarko
Oct 28 '15 at 8:28
|
show 4 more comments
I'm not sure what the resizing is about. I would use a "normal" standalone
document class and resize the table inside powerpoint. I would recommend, though, that you use a non-extended bold font for the numbers in the table; doing so will make it much easier to "line" up the numbers, visually speaking.
In the code below, I use the facilities of the siunitx
package to achieve alignment of the numbers on the decimal markers.
documentclass[preview,border=1pt]{standalone}
usepackage{booktabs,threeparttable,caption,siunitx}
begin{document}
begin{table}
newcommand{ubold}[1]{fontseries{b}selectfont#1} % non-extended bold font
centering
begin{threeparttable}
caption{Table Caption}
begin{tabular}{ l S[table-format=3.2]
S[table-format=2.0]
*{3}{S[table-format=2.2]} }
toprule
Source & {SS} & {DOF} & {MS} & {Ftnote{*}} & {%SStnote{textdagger}} \
midrule
A & 15.84 & 1 & 15.84 & ubold{17.89} & ubold{10.29}\
B & 64.33 & 1 & 64.33 & ubold{72.69} & ubold{41.82}\
C & 22.43 & 1 & 22.43 & ubold{25.34} & ubold{14.58}\
D & 1.50 & 1 & 1.50 & 1.70 & 0.98 \
addlinespace
A$times$B & 22.49 & 1 &22.49 & ubold{25.41} & ubold{14.62}\
A$times$C & 3.29 & 1 & 3.29 & 3.72 & 2.14 \
A$times$D & 3.44 & 1 & 3.44 & 3.88 & 2.23 \
B$times$C & 7.02 & 1 & 7.02 & ubold{7.93} & 4.56 \
B$times$D & 6.94 & 1 & 6.94 & ubold{7.84} & 4.51 \
C$times$D & 2.13 & 1 & 2.13 & 2.41 & 1.38 \
addlinespace
Error & 4.43 & 5 & 0.89 \
addlinespace
Total & 153.82 & 15 \
bottomrule
end{tabular}
smallskip
begin{tablenotes}
footnotesize
item[*] Bold entries in the F column denote values greater than an Ftextsubscript{cr} of 6.61 at a confidence level of $P = 95%$.
item[textdagger] Bold entries in the %SS column denote values greater than 10% of the total SS.
end{tablenotes}
end{threeparttable}
end{table}
end{document}
nice solution, however theubold
numbers are not aligned at decimal point: see column before last one (numbers7.93
and7.84
).
– Zarko
Oct 28 '15 at 7:59
@Zarko - Yeah, I noticed that too. Not sure what's going on; it may be a bug in thesiunitx
package. For sure, the problem isn't caused byubold
-- it arises withtextbf{...}
andbfseries
as well. I'll need to write to Joseph W. to ask if this is a bug.
– Mico
Oct 28 '15 at 8:06
@Zarko - I can get that size to print, but what I'm concerned about is the projection getting blurry. Is it possible to make the image larger, it appears that any changes I make to the size or density have no effect on the final image. Also, I'm attempting to do this with about 5 tables, so I'm trying to keep the formatting generalizable.
– Lucca Giannechini
Oct 28 '15 at 8:13
@Mico, I foggy remember, that this was issues ones on SE, and solution was use option, how to parse a number (I'm not sure). Anyway, it will be nice, if such issues will be emphasized in siunitx manual. Please ask Joseph W. for this too.
– Zarko
Oct 28 '15 at 8:24
@LuccaGiannechini, my test show clear and crisp normal and bold faced numbers. As I mentioned, only aligning of bold numbers doesn't obey decimal point but are aligned to the left of declared integer part of number.
– Zarko
Oct 28 '15 at 8:28
|
show 4 more comments
I'm not sure what the resizing is about. I would use a "normal" standalone
document class and resize the table inside powerpoint. I would recommend, though, that you use a non-extended bold font for the numbers in the table; doing so will make it much easier to "line" up the numbers, visually speaking.
In the code below, I use the facilities of the siunitx
package to achieve alignment of the numbers on the decimal markers.
documentclass[preview,border=1pt]{standalone}
usepackage{booktabs,threeparttable,caption,siunitx}
begin{document}
begin{table}
newcommand{ubold}[1]{fontseries{b}selectfont#1} % non-extended bold font
centering
begin{threeparttable}
caption{Table Caption}
begin{tabular}{ l S[table-format=3.2]
S[table-format=2.0]
*{3}{S[table-format=2.2]} }
toprule
Source & {SS} & {DOF} & {MS} & {Ftnote{*}} & {%SStnote{textdagger}} \
midrule
A & 15.84 & 1 & 15.84 & ubold{17.89} & ubold{10.29}\
B & 64.33 & 1 & 64.33 & ubold{72.69} & ubold{41.82}\
C & 22.43 & 1 & 22.43 & ubold{25.34} & ubold{14.58}\
D & 1.50 & 1 & 1.50 & 1.70 & 0.98 \
addlinespace
A$times$B & 22.49 & 1 &22.49 & ubold{25.41} & ubold{14.62}\
A$times$C & 3.29 & 1 & 3.29 & 3.72 & 2.14 \
A$times$D & 3.44 & 1 & 3.44 & 3.88 & 2.23 \
B$times$C & 7.02 & 1 & 7.02 & ubold{7.93} & 4.56 \
B$times$D & 6.94 & 1 & 6.94 & ubold{7.84} & 4.51 \
C$times$D & 2.13 & 1 & 2.13 & 2.41 & 1.38 \
addlinespace
Error & 4.43 & 5 & 0.89 \
addlinespace
Total & 153.82 & 15 \
bottomrule
end{tabular}
smallskip
begin{tablenotes}
footnotesize
item[*] Bold entries in the F column denote values greater than an Ftextsubscript{cr} of 6.61 at a confidence level of $P = 95%$.
item[textdagger] Bold entries in the %SS column denote values greater than 10% of the total SS.
end{tablenotes}
end{threeparttable}
end{table}
end{document}
I'm not sure what the resizing is about. I would use a "normal" standalone
document class and resize the table inside powerpoint. I would recommend, though, that you use a non-extended bold font for the numbers in the table; doing so will make it much easier to "line" up the numbers, visually speaking.
In the code below, I use the facilities of the siunitx
package to achieve alignment of the numbers on the decimal markers.
documentclass[preview,border=1pt]{standalone}
usepackage{booktabs,threeparttable,caption,siunitx}
begin{document}
begin{table}
newcommand{ubold}[1]{fontseries{b}selectfont#1} % non-extended bold font
centering
begin{threeparttable}
caption{Table Caption}
begin{tabular}{ l S[table-format=3.2]
S[table-format=2.0]
*{3}{S[table-format=2.2]} }
toprule
Source & {SS} & {DOF} & {MS} & {Ftnote{*}} & {%SStnote{textdagger}} \
midrule
A & 15.84 & 1 & 15.84 & ubold{17.89} & ubold{10.29}\
B & 64.33 & 1 & 64.33 & ubold{72.69} & ubold{41.82}\
C & 22.43 & 1 & 22.43 & ubold{25.34} & ubold{14.58}\
D & 1.50 & 1 & 1.50 & 1.70 & 0.98 \
addlinespace
A$times$B & 22.49 & 1 &22.49 & ubold{25.41} & ubold{14.62}\
A$times$C & 3.29 & 1 & 3.29 & 3.72 & 2.14 \
A$times$D & 3.44 & 1 & 3.44 & 3.88 & 2.23 \
B$times$C & 7.02 & 1 & 7.02 & ubold{7.93} & 4.56 \
B$times$D & 6.94 & 1 & 6.94 & ubold{7.84} & 4.51 \
C$times$D & 2.13 & 1 & 2.13 & 2.41 & 1.38 \
addlinespace
Error & 4.43 & 5 & 0.89 \
addlinespace
Total & 153.82 & 15 \
bottomrule
end{tabular}
smallskip
begin{tablenotes}
footnotesize
item[*] Bold entries in the F column denote values greater than an Ftextsubscript{cr} of 6.61 at a confidence level of $P = 95%$.
item[textdagger] Bold entries in the %SS column denote values greater than 10% of the total SS.
end{tablenotes}
end{threeparttable}
end{table}
end{document}
answered Oct 28 '15 at 7:01
MicoMico
274k30371757
274k30371757
nice solution, however theubold
numbers are not aligned at decimal point: see column before last one (numbers7.93
and7.84
).
– Zarko
Oct 28 '15 at 7:59
@Zarko - Yeah, I noticed that too. Not sure what's going on; it may be a bug in thesiunitx
package. For sure, the problem isn't caused byubold
-- it arises withtextbf{...}
andbfseries
as well. I'll need to write to Joseph W. to ask if this is a bug.
– Mico
Oct 28 '15 at 8:06
@Zarko - I can get that size to print, but what I'm concerned about is the projection getting blurry. Is it possible to make the image larger, it appears that any changes I make to the size or density have no effect on the final image. Also, I'm attempting to do this with about 5 tables, so I'm trying to keep the formatting generalizable.
– Lucca Giannechini
Oct 28 '15 at 8:13
@Mico, I foggy remember, that this was issues ones on SE, and solution was use option, how to parse a number (I'm not sure). Anyway, it will be nice, if such issues will be emphasized in siunitx manual. Please ask Joseph W. for this too.
– Zarko
Oct 28 '15 at 8:24
@LuccaGiannechini, my test show clear and crisp normal and bold faced numbers. As I mentioned, only aligning of bold numbers doesn't obey decimal point but are aligned to the left of declared integer part of number.
– Zarko
Oct 28 '15 at 8:28
|
show 4 more comments
nice solution, however theubold
numbers are not aligned at decimal point: see column before last one (numbers7.93
and7.84
).
– Zarko
Oct 28 '15 at 7:59
@Zarko - Yeah, I noticed that too. Not sure what's going on; it may be a bug in thesiunitx
package. For sure, the problem isn't caused byubold
-- it arises withtextbf{...}
andbfseries
as well. I'll need to write to Joseph W. to ask if this is a bug.
– Mico
Oct 28 '15 at 8:06
@Zarko - I can get that size to print, but what I'm concerned about is the projection getting blurry. Is it possible to make the image larger, it appears that any changes I make to the size or density have no effect on the final image. Also, I'm attempting to do this with about 5 tables, so I'm trying to keep the formatting generalizable.
– Lucca Giannechini
Oct 28 '15 at 8:13
@Mico, I foggy remember, that this was issues ones on SE, and solution was use option, how to parse a number (I'm not sure). Anyway, it will be nice, if such issues will be emphasized in siunitx manual. Please ask Joseph W. for this too.
– Zarko
Oct 28 '15 at 8:24
@LuccaGiannechini, my test show clear and crisp normal and bold faced numbers. As I mentioned, only aligning of bold numbers doesn't obey decimal point but are aligned to the left of declared integer part of number.
– Zarko
Oct 28 '15 at 8:28
nice solution, however the
ubold
numbers are not aligned at decimal point: see column before last one (numbers 7.93
and 7.84
).– Zarko
Oct 28 '15 at 7:59
nice solution, however the
ubold
numbers are not aligned at decimal point: see column before last one (numbers 7.93
and 7.84
).– Zarko
Oct 28 '15 at 7:59
@Zarko - Yeah, I noticed that too. Not sure what's going on; it may be a bug in the
siunitx
package. For sure, the problem isn't caused by ubold
-- it arises with textbf{...}
and bfseries
as well. I'll need to write to Joseph W. to ask if this is a bug.– Mico
Oct 28 '15 at 8:06
@Zarko - Yeah, I noticed that too. Not sure what's going on; it may be a bug in the
siunitx
package. For sure, the problem isn't caused by ubold
-- it arises with textbf{...}
and bfseries
as well. I'll need to write to Joseph W. to ask if this is a bug.– Mico
Oct 28 '15 at 8:06
@Zarko - I can get that size to print, but what I'm concerned about is the projection getting blurry. Is it possible to make the image larger, it appears that any changes I make to the size or density have no effect on the final image. Also, I'm attempting to do this with about 5 tables, so I'm trying to keep the formatting generalizable.
– Lucca Giannechini
Oct 28 '15 at 8:13
@Zarko - I can get that size to print, but what I'm concerned about is the projection getting blurry. Is it possible to make the image larger, it appears that any changes I make to the size or density have no effect on the final image. Also, I'm attempting to do this with about 5 tables, so I'm trying to keep the formatting generalizable.
– Lucca Giannechini
Oct 28 '15 at 8:13
@Mico, I foggy remember, that this was issues ones on SE, and solution was use option, how to parse a number (I'm not sure). Anyway, it will be nice, if such issues will be emphasized in siunitx manual. Please ask Joseph W. for this too.
– Zarko
Oct 28 '15 at 8:24
@Mico, I foggy remember, that this was issues ones on SE, and solution was use option, how to parse a number (I'm not sure). Anyway, it will be nice, if such issues will be emphasized in siunitx manual. Please ask Joseph W. for this too.
– Zarko
Oct 28 '15 at 8:24
@LuccaGiannechini, my test show clear and crisp normal and bold faced numbers. As I mentioned, only aligning of bold numbers doesn't obey decimal point but are aligned to the left of declared integer part of number.
– Zarko
Oct 28 '15 at 8:28
@LuccaGiannechini, my test show clear and crisp normal and bold faced numbers. As I mentioned, only aligning of bold numbers doesn't obey decimal point but are aligned to the left of declared integer part of number.
– Zarko
Oct 28 '15 at 8:28
|
show 4 more comments
If you use size
AND density
options of convert
then the PDF is rastered to a PNG with the given density and afterwards resized to the requested size, which makes larger density setting ineffective again. I would simply recommend to drop the size
setting and only use a suitable density. I would start with 600 (dpi) and go from there up or down as needed.
add a comment |
If you use size
AND density
options of convert
then the PDF is rastered to a PNG with the given density and afterwards resized to the requested size, which makes larger density setting ineffective again. I would simply recommend to drop the size
setting and only use a suitable density. I would start with 600 (dpi) and go from there up or down as needed.
add a comment |
If you use size
AND density
options of convert
then the PDF is rastered to a PNG with the given density and afterwards resized to the requested size, which makes larger density setting ineffective again. I would simply recommend to drop the size
setting and only use a suitable density. I would start with 600 (dpi) and go from there up or down as needed.
If you use size
AND density
options of convert
then the PDF is rastered to a PNG with the given density and afterwards resized to the requested size, which makes larger density setting ineffective again. I would simply recommend to drop the size
setting and only use a suitable density. I would start with 600 (dpi) and go from there up or down as needed.
answered 36 mins ago
Martin Scharrer♦Martin Scharrer
199k45632816
199k45632816
add a comment |
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f275324%2fresizing-standalone-table-for-image-inclusion-into-powerpoint%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
2
powerpoint won't take
png
as such. It will try to convert it first to some other acceptible format likejpg
. In this process your resolution may be lost. So, convert directly to.jp
usingsize=1080,outext=.jpg
and try to insert. Don't scale fonts, but scale the image in powerpoint. Best way is to usebeamer
, say bye bye to power point.– user11232
Oct 28 '15 at 6:29
Unfortunately that didn't work either. To be more explicit, I'm just dragging the LaTeX output .pdf into the PowerPoint, don't know if that was incorrect. I'll look into beamer, but this presentation is due in two days and I don't want to mess around with it with such little time.
– Lucca Giannechini
Oct 28 '15 at 6:39
Dragging should not be done. You should use
insert
function of power point. Use a jpg image directly. Don't allow power point to convert.– user11232
Oct 28 '15 at 6:47
I might be doing something wrong then, because no .jpg file is created, only the standard .pdf. Is standalone supposed to create a second .jpg file?
– Lucca Giannechini
Oct 28 '15 at 7:15
You will need
imagemagick
installed for that. I converted your table in to jpg and inserted in to power point and it looks alright. I didn't use large fonts.– user11232
Oct 28 '15 at 7:17