316 reputation
210
bio website daviddoria.com
location Albany, NY
age
visits member for 2 years, 9 months
seen Jul 25 at 20:44

I'm currently working on my Ph.D. in Electrical Engineering. My focus is on 3D data analysis. I also am very interested in engineering education.


Oct
4
awarded  Popular Question
Sep
24
awarded  Autobiographer
Jul
7
comment Automatic table row numbers
@egreg Ah, my mistake indeed. Again a MWE saves the day. I was using the tabu package instead of tabular in my real document, so I just changed the preto command to \preto\tabu and all is well. Thanks for the help and sorry for the confusion!
Jul
7
comment Automatic table row numbers
@egreg Yes I did.
Jul
7
comment Automatic table row numbers
@egreg Hm, even with that in the preamble, the row numbers do not reset for me unless I clear the counter manually as I explained.
Jul
7
comment Automatic table row numbers
@egreg I put that before my second table but the counter did not reset. I had to use simply \setcounter{magicrownumbers}{0} instead
Jul
7
comment Automatic table row numbers
@Herbert Do you mean replace \begin{tabular}{@{\makebox[3em][r]{\rownumber\space}} | r} with \begin{tabular}{@{\makebox[3em][r]{\ifnum\themagicrownumber>2\relax\arabic{magic‌​rownumbers}\fi\space}} | r} ? When I do that, I get "Undefined control sequence" errors.
Jul
7
comment How to enumerate the rows of a table
@MarcoDaniel Daniel I have a \hline between all of my rows. This also gets a number using this method. Is there a way to make the numbering skip rows like this?
Jul
2
comment Landscape and page numbers with pdfpages
@cryptic0 It seems to work for me just using it in a single document setting.
Jul
2
awarded  Curious
Jun
30
comment align inside of tabular
So what was the solution here? Just to use tabularx instead of tabular?
Mar
13
comment Installing mwe package
Note - you have to have the files that 'tex ydoc.dtx' generates in the same folder as mwe.ins before running 'latex mwe.ins'.
Feb
10
comment Can't get this caption right (wrapfig + floatrow)
@HarishKumar I'm sorry, so I still don't understand then how I would make the caption the same width as the figure?
Feb
6
comment Can't get this caption right (wrapfig + floatrow)
@HarishKumar I don't understand what this is doing. According to the floatrow doc, "But if you set, for example, the option [\FBwidth] like below, you’ll get a caption width equal to the width of picture". With \ffigbox[\FBwidth] and \includegraphics[width=.5\linewidth]{dummy}, the caption is much bigger than the figure. If I make it \ffigbox[.5\FBwidth] to match, then the figure gets even smaller, and the caption is still bigger than the figure. What is the relationship between these two width settings?
Feb
5
comment Can't get this caption right (wrapfig + floatrow)
@HarishKumar So that is the question - how to get the caption to span only the figure width, whatever it may be?
Feb
4
comment Can't get this caption right (wrapfig + floatrow)
@HarishKumar but then the image is also linewidth. I want to size my image to my liking, then have the text aligned to its edges below it.
Feb
3
comment Can't get this caption right (wrapfig + floatrow)
@Harish Kumar I tried this (without the wrapfigure) and it lets the caption be much wider than the image: \documentclass{article} \usepackage{floatrow} \usepackage{graphicx} \usepackage{wrapfig} \begin{document} \begin{figure} \ffigbox[\FBwidth] { \caption{caption text caption text caption text caption text caption text caption text caption text caption text caption text caption text caption text caption text }\label{...} } { \includegraphics[width=.4\linewidth]{dummy} } \end{figure} \end{document}
Feb
3
comment Can't get this caption right (wrapfig + floatrow)
@Werner I don't get it - you're saying to replace 'includegraphics' with 'rule'? I tried this but it doesn't build: \documentclass{article} \usepackage{floatrow} \usepackage{graphicx} \usepackage{wrapfig} \begin{document} \begin{figure} \ffigbox[\FBwidth] { \caption{caption text caption text caption text caption text caption text caption text caption text caption text caption text caption text caption text caption text }\label{...} } { %\includegraphics[width=.4\linewidth]{dummy} \rule{.4\linewidth]{dummy} } \end{figure} \end{document}
Feb
3
comment How to limit the figure caption width?
Hadi Safi aghdam - that works, but it doesn't respect 'width' options of includegraphics. That is, the caption is much wider than the figure with something like this: \begin{figure} \ffigbox[\FBwidth] {\caption{caption text caption text caption text caption text caption text caption text caption text caption text }\label{...}} {\includegraphics[width=.4\linewidth]{dummy}} \end{figure}
Oct
17
awarded  Popular Question